Gadget
conversionindexptrvector.h
Go to the documentation of this file.
1 #ifndef conversionindexptrvector_h
2 #define conversionindexptrvector_h
3 
4 class ConversionIndex;
5 
11 public:
15  ConversionIndexPtrVector() { size = 0; v = 0; };
30  void resize(ConversionIndex* value);
36  void Delete(int pos);
41  int Size() const { return size; };
47  ConversionIndex*& operator [] (int pos) { return v[pos]; };
53  ConversionIndex* const& operator [] (int pos) const { return v[pos]; };
54 protected:
62  int size;
63 };
64 
65 #endif
This class implements a dynamic vector of ConversionIndex values.
Definition: conversionindexptrvector.h:10
void Delete(int pos)
This will delete an entry from the vector.
Definition: conversionindexptrvector.cc:37
ConversionIndex ** v
This is the vector of ConversionIndex values.
Definition: conversionindexptrvector.h:53
~ConversionIndexPtrVector()
This is the ConversionIndexPtrVector destructor.
Definition: conversionindexptrvector.cc:15
ConversionIndex *& operator[](int pos)
This will return the value of an element of the vector.
Definition: conversionindexptrvector.h:47
void resize(ConversionIndex *value)
This will add one new entry to the vector.
Definition: conversionindexptrvector.cc:22
ConversionIndexPtrVector()
This is the default ConversionIndexPtrVector constructor.
Definition: conversionindexptrvector.h:15
int Size() const
This will return the size of the vector.
Definition: conversionindexptrvector.h:41
int size
This is the size of the vector.
Definition: conversionindexptrvector.h:62
This is the class used to convert information from one LengthGroupDivision length structure to a seco...
Definition: conversionindex.h:12