Gadget
agebandmatrixratioptrvector.h
Go to the documentation of this file.
1 #ifndef agebandmatrixratioptrvector_h
2 #define agebandmatrixratioptrvector_h
3 
4 #include "popratio.h"
5 #include "popratiomatrix.h"
6 #include "popratioindexvector.h"
7 #include "areatime.h"
8 #include "agebandmatrix.h"
10 #include "agebandmatrixratio.h"
11 #include "charptrvector.h"
12 #include "gadget.h"
13 
14 class Maturity;
15 
17 public:
20  AgeBandMatrixRatioPtrVector(int size1, int MinAge, const IntVector& minl, const IntVector& size2);
22  void resize(int add, AgeBandMatrixRatio* matr);
23  void resize(int add, int minage, const IntVector& minl, const IntVector& size);
24  void addTag(AgeBandMatrixPtrVector* initial, const AgeBandMatrixPtrVector& Alkeys, const char* tagname, double tagloss);
25  void addTag(const char* tagname);
26  void deleteTag(const char* tagname);
27  int Size() const { return size; };
28  int getTagID(const char* tagname);
29  const char* getTagName(int id) const { return tagID[id]; };
30  void Migrate(const DoubleMatrix& MI, const AgeBandMatrixPtrVector& Total);
31  int numTagExperiments() const { return tagID.Size(); };
32  const DoubleVector& getTagLoss() const { return tagLoss; };
33  AgeBandMatrixRatio& operator [] (int pos) { return *v[pos]; };
34  const AgeBandMatrixRatio& operator [] (int pos) const { return *v[pos]; };
35  void Add(const AgeBandMatrixRatioPtrVector& Addition, int area,
36  const ConversionIndex &CI, double ratio = 1.0);
37 protected:
38  void addTagName(const char* name);
39  int size;
43 };
44 
45 #endif
This class implements a dynamic vector of AgeBandMatrix values.
Definition: agebandmatrixptrvector.h:12
Definition: agebandmatrixratioptrvector.h:16
void Add(const AgeBandMatrixRatioPtrVector &Addition, int area, const ConversionIndex &CI, double ratio=1.0)
Definition: agebandmatrixratiomemberfunctions.cc:138
int size
Definition: agebandmatrixratioptrvector.h:39
void addTagName(const char *name)
Definition: agebandmatrixratioptrvector.cc:131
CharPtrVector tagID
Definition: agebandmatrixratioptrvector.h:41
AgeBandMatrixRatioPtrVector()
Definition: agebandmatrixratioptrvector.h:18
AgeBandMatrixRatio & operator[](int pos)
Definition: agebandmatrixratioptrvector.h:33
AgeBandMatrixRatio ** v
Definition: agebandmatrixratioptrvector.h:40
void deleteTag(const char *tagname)
Definition: agebandmatrixratioptrvector.cc:154
const char * getTagName(int id) const
Definition: agebandmatrixratioptrvector.h:29
~AgeBandMatrixRatioPtrVector()
Definition: agebandmatrixratioptrvector.cc:20
void addTag(AgeBandMatrixPtrVector *initial, const AgeBandMatrixPtrVector &Alkeys, const char *tagname, double tagloss)
Definition: agebandmatrixratioptrvector.cc:106
void Migrate(const DoubleMatrix &MI, const AgeBandMatrixPtrVector &Total)
Definition: agebandmatrixratiomemberfunctions.cc:214
int getTagID(const char *tagname)
Definition: agebandmatrixratioptrvector.cc:140
const DoubleVector & getTagLoss() const
Definition: agebandmatrixratioptrvector.h:32
DoubleVector tagLoss
Definition: agebandmatrixratioptrvector.h:42
void resize(int add, AgeBandMatrixRatio *matr)
Definition: agebandmatrixratioptrvector.cc:33
int Size() const
Definition: agebandmatrixratioptrvector.h:27
int numTagExperiments() const
Definition: agebandmatrixratioptrvector.h:31
Definition: agebandmatrixratio.h:15
This class implements a dynamic vector of char values.
Definition: charptrvector.h:8
int Size() const
This will return the size of the vector.
Definition: charptrvector.h:44
This is the class used to convert information from one LengthGroupDivision length structure to a seco...
Definition: conversionindex.h:12
This class implements a dynamic vector of DoubleVector values.
Definition: doublematrix.h:11
This class implements a dynamic vector of double values.
Definition: doublevector.h:11
This class implements a dynamic vector of int values.
Definition: intvector.h:11
This is the base class used to calculate the maturity of a stock within the model.
Definition: maturity.h:22