C++ main module for gpm 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  int n=cpy.getSize();
27  mVector.resize(n);
28  for (int i=0;i<n;i++) {
29  mVector[i].copy(cpy[i]);
30  }
31 }
32 
33 #endif
CORE_SharedPointersMatrix()
create the shared pointers matrix
Definition: CORE_SharedPointersMatrix.hpp:7
abstract base class for most classes.
Definition: CORE_Object.h:30
int getSize() const
return the size of the array
Definition: CORE_SharedPointersMatrix.h:221
class CORE_SharedPointersMatrix is a matrix of shared pointers Matrix is a vector of shared pointer o...
Definition: CORE_SharedPointersMatrix.h:9
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