C++ main module for emicrom Package  1.0
CORE_SharedPointersMatrix.hpp
Go to the documentation of this file.
1 #ifndef CORE_SharedPointersMatrix_CPP
2 #define CORE_SharedPointersMatrix_CPP
3 
5 
6 template<class T>
8  mVector.resize(0);
9 }
10 
11 template<class T>
12 template<class Q>
14  copy(cpy);
15 }
16 
17 template<class T>
19  clear();
20 }
21 
22 
23 template<class T>
24 template<class Q>
26  tUIndex i,n=cpy.getSize();
27  mVector.resize(n);
28  for (i=0;i<n;i++) {
29  mVector[i].copy(cpy[i]);
30  }
31 }
32 
33 #endif
vector< CORE_SharedPointersList< T > > mVector
Definition: CORE_SharedPointersMatrix.h:12
void clear()
clear the array
Definition: CORE_SharedPointersMatrix.h:177
CORE_SharedPointersMatrix()
create the shared pointers matrix
Definition: CORE_SharedPointersMatrix.hpp:7
#define tUIndex
Definition: types.h:126
abstract base class for most classes.
Definition: CORE_Object.h:53
class CORE_SharedPointersMatrix is a matrix of shared pointers Matrix is a vector of shared pointer o...
Definition: CORE_SharedPointersMatrix.h:9
tUIndex getSize() const
return the size of the array
Definition: CORE_SharedPointersMatrix.h:212
virtual ~CORE_SharedPointersMatrix()
destroy an array of T*
Definition: CORE_SharedPointersMatrix.hpp:18
void copy(const CORE_SharedPointersMatrix< Q > &cpy)
copy the shared pointers matrix cpy
Definition: CORE_SharedPointersMatrix.hpp:25