[PD-cvs] externals/grh/PDContainer/include GlobalStuff.h, 1.1, 1.2 ContainerBase.h, 1.1, 1.2

Georg Holzmann grholzi at users.sourceforge.net
Thu Nov 3 21:40:42 CET 2005


Update of /cvsroot/pure-data/externals/grh/PDContainer/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15120/include

Modified Files:
	GlobalStuff.h ContainerBase.h 
Log Message:
additional methods: [getall(, [keys(, [values(


Index: ContainerBase.h
===================================================================
RCS file: /cvsroot/pure-data/externals/grh/PDContainer/include/ContainerBase.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ContainerBase.h	21 Oct 2005 11:56:32 -0000	1.1
--- ContainerBase.h	3 Nov 2005 20:40:39 -0000	1.2
***************
*** 95,98 ****
--- 95,104 ----
      { data_.erase(h_namespace_); }
  
+   /* returns a reference to the whole Container
+   * of the current namespace
+    */
+   virtual ContainerType &getAll()
+   { return data_[h_namespace_]; }
+   
    /* clears all the data of the current container
     * ( in all namespaces !!!!! )

Index: GlobalStuff.h
===================================================================
RCS file: /cvsroot/pure-data/externals/grh/PDContainer/include/GlobalStuff.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** GlobalStuff.h	21 Oct 2005 11:56:32 -0000	1.1
--- GlobalStuff.h	3 Nov 2005 20:40:39 -0000	1.2
***************
*** 33,37 ****
  
  // current version
! #define PDC_VERSION   "0.2"
  
  
--- 33,37 ----
  
  // current version
! #define PDC_VERSION   "0.2.1"
  
  
***************
*** 79,95 ****
      {
        length = size_;
-       
-       // !!!! FIXME !!!!
-       // hack to avoid lockating too much memory
-       // (somewhere I read an uninitialized value ...
-       //  ... but where !?)
-       if(length>999)
-       {
- 	post("Element, constr1: invalid construction !!! should be fixed !!!");
- 	length=0;
- 	atom=NULL;
- 	return;
-       }
- 
        atom = (t_atom*)copybytes(atom_, length*sizeof(t_atom));
      }
--- 79,82 ----
***************
*** 102,118 ****
      {
        length = src.length;
-       
-       // !!!! FIXME !!!!
-       // hack to avoid lockating too much memory
-       // (somewhere I read an uninitialized value ...
-       //  ... but where !?)
-       if(length>999)
-       {
- 	post("Element, constr2: invalid construction !!! should be fixed !!!");
-         length=0;
-         atom=NULL;
- 	return;
-       }
- 
        atom = (t_atom*)copybytes(src.atom, length*sizeof(t_atom));
      }
--- 89,92 ----
***************
*** 139,155 ****
      {
        length = size_;
-       
-       // !!!! FIXME !!!!
-       // hack to avoid lockating too much memory
-       // (somewhere I read an uninitialized value ...
-       //  ... but where !?)
-       if(length>999)
-       {
- 	post("Element, setAtoms: invalid construction !!! should be fixed !!!");
- 	length=0;
- 	atom=NULL;
- 	return;
-       }
-       
        atom = (t_atom*)copybytes(atom_, length*sizeof(t_atom));
      }
--- 113,116 ----
***************
*** 176,192 ****
      {
        length = src.length;
-       
-       // !!!! FIXME !!!!
-       // hack to avoid lockating too much memory
-       // (somewhere I read an uninitialized value ...
-       //  ... but where !?)
-       if(length>999)
-       {
- 	post("Element, assignment: invalid construction !!! should be fixed !!!");
- 	length=0;
- 	atom=NULL;
- 	return (*this);
-       }
-       
        atom = (t_atom*)copybytes(src.atom, length*sizeof(t_atom));
      }
--- 137,140 ----





More information about the Pd-cvs mailing list