Gadget
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
doublematrixptrvector.h
Go to the documentation of this file.
1 #ifndef doublematrixptrvector_h
2 #define doublematrixptrvector_h
3 
4 class DoubleMatrix;
5 
11 public:
15  DoubleMatrixPtrVector() { size = 0; v = 0; };
21  DoubleMatrixPtrVector(int sz);
36  void resizeBlank(int addsize);
41  void resize(DoubleMatrix* value);
47  void Delete(int pos);
52  int Size() const { return size; };
58  DoubleMatrix*& operator [] (int pos) { return v[pos]; };
64  DoubleMatrix* const& operator [] (int pos) const { return v[pos]; };
65 protected:
73  int size;
74 };
75 
76 #endif
This class implements a dynamic vector of DoubleMatrix values.
Definition: doublematrixptrvector.h:10
int size
This is the size of the vector.
Definition: doublematrixptrvector.h:73
void resizeBlank(int addsize)
This will add new blank (ie. NULL) entries to the vector.
Definition: doublematrixptrvector.cc:45
int Size() const
This will return the size of the vector.
Definition: doublematrixptrvector.h:52
~DoubleMatrixPtrVector()
This is the DoubleMatrixPtrVector destructor.
Definition: doublematrixptrvector.cc:23
DoubleMatrix *& operator[](int pos)
This will return the value of an element of the vector.
Definition: doublematrixptrvector.h:58
void resize(DoubleMatrix *value)
This will add one new entry to the vector.
Definition: doublematrixptrvector.cc:30
DoubleMatrixPtrVector()
This is the default DoubleMatrixPtrVector constructor.
Definition: doublematrixptrvector.h:15
void Delete(int pos)
This will delete an entry from the vector.
Definition: doublematrixptrvector.cc:62
DoubleMatrix ** v
This is the vector of DoubleMatrix values.
Definition: doublematrixptrvector.h:64
This class implements a dynamic vector of DoubleVector values.
Definition: doublematrix.h:11