Gadget
formulamatrixptrvector.h
Go to the documentation of this file.
1 #ifndef formulamatrixptrvector_h
2 #define formulamatrixptrvector_h
3 
4 #include "formulamatrix.h"
5 
11 public:
15  FormulaMatrixPtrVector() { size = 0; v = 0; };
30  void resize(FormulaMatrix* value);
36  void Delete(int pos);
41  int Size() const { return size; };
47  FormulaMatrix*& operator [] (int pos) { return v[pos]; };
53  FormulaMatrix* const& operator [] (int pos) const { return v[pos]; };
54 protected:
62  int size;
63 };
64 
65 #endif
66 
This class implements a dynamic vector of FormulaMatrix values.
Definition: formulamatrixptrvector.h:10
FormulaMatrixPtrVector()
This is the default FormulaMatrixPtrVector constructor.
Definition: formulamatrixptrvector.h:15
FormulaMatrix *& operator[](int pos)
This will return the value of an element of the vector.
Definition: formulamatrixptrvector.h:47
void Delete(int pos)
This will delete an entry from the vector.
Definition: formulamatrixptrvector.cc:37
~FormulaMatrixPtrVector()
This is the FormulaMatrixPtrVector destructor.
Definition: formulamatrixptrvector.cc:15
int Size() const
This will return the size of the vector.
Definition: formulamatrixptrvector.h:41
void resize(FormulaMatrix *value)
This will add one new entry to the vector.
Definition: formulamatrixptrvector.cc:22
FormulaMatrix ** v
This is the vector of FormulaMatrix values.
Definition: formulamatrixptrvector.h:53
int size
This is the size of the vector.
Definition: formulamatrixptrvector.h:62
This class implements a dynamic vector of FormulaVector values.
Definition: formulamatrix.h:11