Enable() and Disable() removed. The memory is allocated by the contructor

This commit is contained in:
ganovelli 2008-05-16 08:48:49 +00:00
parent 92b267eaa8
commit 69a35e8912
1 changed files with 3 additions and 9 deletions

View File

@ -24,6 +24,9 @@
History History
$Log: not supported by cvs2svn $ $Log: not supported by cvs2svn $
Revision 1.6 2008/05/15 16:35:17 ganovelli
Start() Stop() removed. Allocation on creation, disallocaiton on distruction
Revision 1.5 2007/02/02 00:01:54 tarini Revision 1.5 2007/02/02 00:01:54 tarini
overloaded operator "[]" (once more) to make it possible to index the temp. structure with an iterator overloaded operator "[]" (once more) to make it possible to index the temp. structure with an iterator
@ -81,15 +84,6 @@ ATTR_TYPE & operator[](const typename STL_CONT::value_type * v){return data[v-&*
ATTR_TYPE & operator[](const typename STL_CONT::iterator & cont){return data[&(*cont)-&*c.begin()];} ATTR_TYPE & operator[](const typename STL_CONT::iterator & cont){return data[&(*cont)-&*c.begin()];}
ATTR_TYPE & operator[](const int & i){return data[i];} ATTR_TYPE & operator[](const int & i){return data[i];}
// enable temporary attribute: REMOVED!! The memory is allocated by the contructor
void Enable(){assert(0);}
// disable and initialize temporary attribute: REMOVED!! The memory is allocated by the contructor
void Enable(ATTR_TYPE val){assert(0);}
// stop temporary attribute: REMOVED!! The memory is freed by the distructor
void Disable(){assert(0);}
// update temporary data size // update temporary data size
bool UpdateSize(){ bool UpdateSize(){
if(data.size() != c.size()) if(data.size() != c.size())