[Gridflow-cvs] [svn] commit: r6217 - /trunk/src/gridflow.hxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Tue Sep 7 20:43:13 EDT 2010


Author: matju
Date: Tue Sep  7 20:43:13 2010
New Revision: 6217

Log:
make 'chunk' variable private

Modified:
    trunk/src/gridflow.hxx

Modified: trunk/src/gridflow.hxx
==============================================================================
--- trunk/src/gridflow.hxx (original)
+++ trunk/src/gridflow.hxx Tue Sep  7 20:43:13 2010
@@ -681,12 +681,14 @@
 	
 	// set once per transmission
 	GridOut *sender; Dim dim; NumberTypeE nt; /* nt shouldn't need to exist */
-	
+private:
+	int chunk; 
+public:
 	// modified continually
-	long dex; int chunk; PtrGrid buf; /* factor-chunk buffer */ long bufi; /* buffer index: how much of buf is filled */
+	long dex; PtrGrid buf; /* factor-chunk buffer */ long bufi; /* buffer index: how much of buf is filled */
 
 	GridInlet(FObject *parent_, const GridHandler *gh_) :
-		parent(parent_), gh(gh_), sender(0), dim(0), nt(int32_e), dex(0), chunk(-1), bufi(0) {}
+		parent(parent_), gh(gh_), sender(0), dim(0), nt(int32_e), chunk(-1), dex(0), bufi(0) {}
 	~GridInlet() {}
 	void set_chunk(long whichdim);
 	int32 factor() {return buf?buf->dim.prod():1;} // which is usually not the same as this->dim->prod(chunk)



More information about the Gridflow-cvs mailing list