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

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Thu Sep 23 13:34:01 EDT 2010


Author: matju
Date: Thu Sep 23 13:34:00 2010
New Revision: 6325

Log:
add a_index macro; add two-valued t_atom2 constructors (with explicit t_atomtype)

Modified:
    trunk/src/gridflow.hxx

Modified: trunk/src/gridflow.hxx
==============================================================================
--- trunk/src/gridflow.hxx (original)
+++ trunk/src/gridflow.hxx Thu Sep 23 13:34:00 2010
@@ -54,6 +54,7 @@
 using std::pair;
 typedef pair<int,t_symbol *> insel; // inlet-selector compound
 
+#define a_index    a_w.w_index
 #define a_float    a_w.w_float
 #define a_symbol   a_w.w_symbol
 #define a_gpointer a_w.w_gpointer
@@ -284,7 +285,10 @@
 	template <class T> t_atom2 &operator = (T value) {set_atom(this,value); return *this;};
 	template <class T> t_atom2             (T value) {set_atom(this,value);              };
 	t_atom2 () {}
-
+	t_atom2 (t_atomtype t, int i)         {a_type = t; a_index    = i;}
+	t_atom2 (t_atomtype t, float f)       {a_type = t; a_float    = f;}
+	t_atom2 (t_atomtype t, t_symbol *s)   {a_type = t; a_symbol   = s;}
+	t_atom2 (t_atomtype t, t_gpointer *p) {a_type = t; a_gpointer = p;}
 	string to_s ();
 };
 



More information about the Gridflow-cvs mailing list