Gadget
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
agebandmatrixptrvector.h
Go to the documentation of this file.
1 #ifndef agebandmatrixptrvector_h
2 #define agebandmatrixptrvector_h
3 
4 #include "agebandmatrix.h"
5 
6 class AgeBandMatrix;
7 
13 public:
17  AgeBandMatrixPtrVector() { size = 0; v = 0; };
23  AgeBandMatrixPtrVector(int sz);
31  AgeBandMatrixPtrVector(int sz, int minage, const IntVector& minl, const IntVector& lsize);
47  void resize(int add, AgeBandMatrix* value);
53  void resize(int add);
61  void resize(int add, int minage, const IntVector& minl, const IntVector& lsize);
69  void resize(int add, int minage, int minl, const PopInfoMatrix& matr);
75  void Delete(int pos);
80  int Size() const { return size; };
86  AgeBandMatrix& operator [] (int pos) { return *v[pos]; };
92  const AgeBandMatrix& operator [] (int pos) const { return *v[pos]; };
98  void Migrate(const DoubleMatrix& MI, PopInfoVector& tmp);
99 protected:
107  int size;
108 };
109 
110 #endif
This class implements a dynamic vector of AgeBandMatrix values.
Definition: agebandmatrixptrvector.h:12
void Delete(int pos)
This will delete an entry from the vector.
Definition: agebandmatrixptrvector.cc:123
AgeBandMatrixPtrVector()
This is the default AgeBandMatrixPtrVector constructor.
Definition: agebandmatrixptrvector.h:17
void Migrate(const DoubleMatrix &MI, PopInfoVector &tmp)
This function will implement the migration of entries from one AgeBandMatrix to another within the ve...
Definition: agebandmatrixmemberfunctions.cc:165
~AgeBandMatrixPtrVector()
This is the AgeBandMatrixPtrVector destructor.
Definition: agebandmatrixptrvector.cc:38
void resize(int add, AgeBandMatrix *value)
This will add new entries to the vector.
Definition: agebandmatrixptrvector.cc:48
AgeBandMatrix & operator[](int pos)
This will return the value of an element of the vector.
Definition: agebandmatrixptrvector.h:86
int size
This is the size of the vector.
Definition: agebandmatrixptrvector.h:107
AgeBandMatrix ** v
This is the vector of AgeBandMatrix values.
Definition: agebandmatrixptrvector.h:103
int Size() const
This will return the size of the vector.
Definition: agebandmatrixptrvector.h:80
This class implements a vector of PopInfoIndexVector values, indexed from minage not 0.
Definition: agebandmatrix.h:15
This class implements a dynamic vector of DoubleVector values.
Definition: doublematrix.h:11
This class implements a dynamic vector of int values.
Definition: intvector.h:11
This class implements a dynamic vector of PopInfoVector values.
Definition: popinfomatrix.h:11
This class implements a dynamic vector of PopInfo values.
Definition: popinfovector.h:11