[Gridflow-cvs] [svn] commit: r3887 - in /trunk: base/grid.c gridflow.h

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Tue Jun 17 10:25:57 EDT 2008


Author: matju
Date: Tue Jun 17 10:25:56 2008
New Revision: 3887

Log:
moved GridOutlet constructor to grid.c

Modified:
    trunk/base/grid.c
    trunk/gridflow.h

Modified: trunk/base/grid.c
==============================================================================
--- trunk/base/grid.c (original)
+++ trunk/base/grid.c Tue Jun 17 10:25:56 2008
@@ -283,6 +283,15 @@
 
 /* **************** GridOutlet ************************************ */
 
+GridOutlet::GridOutlet(FObject *parent_, int woutlet, P<Dim> dim_, NumberTypeE nt_) {
+	parent=parent_; dim=dim_; nt=nt_;
+	dex=0; frozen=false; bufi=0;
+	//int ntsz = number_type_table[nt].size;
+	buf=new Grid(new Dim(MAX_PACKET_SIZE/*/ntsz*/), nt);
+	//post("GridOutlet buf new %s[%d]",number_type_table[nt].name,MAX_PACKET_SIZE/*/ntsz*/);
+	begin(woutlet,dim,nt);
+}
+
 //void GridOutlet::alloc_buf() {
 //}
 

Modified: trunk/gridflow.h
==============================================================================
--- trunk/gridflow.h (original)
+++ trunk/gridflow.h Tue Jun 17 10:25:56 2008
@@ -781,12 +781,7 @@
 // those are updated during transmission
 	long dex;  // how many numbers were already sent in this connection
 
-	GridOutlet(FObject *parent_, int woutlet, P<Dim> dim_, NumberTypeE nt_=int32_e) :
-	parent(parent_), dim(dim_), nt(nt_), dex(0), frozen(false), bufi(0) {
-		//int ntsz = number_type_table[nt].size;
-		buf=new Grid(new Dim(MAX_PACKET_SIZE/*/ntsz*/), nt);
-		begin(woutlet,dim,nt);
-	}
+	GridOutlet(FObject *parent_, int woutlet, P<Dim> dim_, NumberTypeE nt_=int32_e);
 	~GridOutlet() {}
 	void callback(GridInlet *in);
 



More information about the Gridflow-cvs mailing list