Gadget
agebandmatrixptrmatrix.h
Go to the documentation of this file.
1 #ifndef agebandmatrixptrmatrix_h
2 #define agebandmatrixptrmatrix_h
3 
5 
11 public:
15  AgeBandMatrixPtrMatrix() { nrow = 0; v = 0; };
25  void resize(AgeBandMatrixPtrVector* value);
31  void Delete(int pos);
38  int Ncol(int i = 0) const { return v[i]->Size(); };
43  int Nrow() const { return nrow; };
49  AgeBandMatrixPtrVector*& operator [] (int pos) { return v[pos]; };
55  AgeBandMatrixPtrVector* const& operator [] (int pos) const { return v[pos]; };
56 protected:
60  int nrow;
65 };
66 
67 #endif
This class implements a dynamic vector of AgeBandMatrixPtrVector values.
Definition: agebandmatrixptrmatrix.h:10
AgeBandMatrixPtrMatrix()
This is the default AgeBandMatrixPtrMatrix constructor.
Definition: agebandmatrixptrmatrix.h:15
void Delete(int pos)
This will delete an entry from the vector.
Definition: agebandmatrixptrmatrix.cc:28
~AgeBandMatrixPtrMatrix()
This is the AgeBandMatrixPtrMatrix destructor.
Definition: agebandmatrixptrmatrix.cc:3
int Ncol(int i=0) const
This will return the number of columns in row i of the vector.
Definition: agebandmatrixptrmatrix.h:38
AgeBandMatrixPtrVector *& operator[](int pos)
This will return the value of an element of the vector.
Definition: agebandmatrixptrmatrix.h:49
void resize(AgeBandMatrixPtrVector *value)
This will add one new entry to the vector.
Definition: agebandmatrixptrmatrix.cc:13
int nrow
This is number of rows of the vector.
Definition: agebandmatrixptrmatrix.h:55
AgeBandMatrixPtrVector ** v
This is the vector of AgeBandMatrixPtrVector values.
Definition: agebandmatrixptrmatrix.h:64
int Nrow() const
This will return the number of rows of the vector.
Definition: agebandmatrixptrmatrix.h:43
This class implements a dynamic vector of AgeBandMatrix values.
Definition: agebandmatrixptrvector.h:12
int Size() const
This will return the size of the vector.
Definition: agebandmatrixptrvector.h:80