aboutsummaryrefslogtreecommitdiff
path: root/PDContainer/include
diff options
context:
space:
mode:
Diffstat (limited to 'PDContainer/include')
-rwxr-xr-xPDContainer/include/ContainerBase.h6
-rwxr-xr-xPDContainer/include/GlobalStuff.h54
2 files changed, 7 insertions, 53 deletions
diff --git a/PDContainer/include/ContainerBase.h b/PDContainer/include/ContainerBase.h
index c32a22a..7cc54b9 100755
--- a/PDContainer/include/ContainerBase.h
+++ b/PDContainer/include/ContainerBase.h
@@ -94,6 +94,12 @@ class ContainerBase
virtual void clearNamespace()
{ 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 !!!!! )
* so be carefull !!!
diff --git a/PDContainer/include/GlobalStuff.h b/PDContainer/include/GlobalStuff.h
index 6cb96cc..6424a99 100755
--- a/PDContainer/include/GlobalStuff.h
+++ b/PDContainer/include/GlobalStuff.h
@@ -32,7 +32,7 @@ using std::endl;
// current version
-#define PDC_VERSION "0.2"
+#define PDC_VERSION "0.2.1"
// TinyXML
@@ -78,19 +78,6 @@ class Element
if(atom_ && size_)
{
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));
}
}
@@ -101,19 +88,6 @@ class Element
if(src.atom)
{
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));
}
}
@@ -138,19 +112,6 @@ class Element
if(atom_)
{
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));
}
}
@@ -175,19 +136,6 @@ class Element
if(src.atom)
{
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));
}