Gadget
addresskeepervector.h
Go to the documentation of this file.
1 #ifndef addresskeepervector_h
2 #define addresskeepervector_h
3 
4 #include "addresskeeper.h"
5 
11 public:
15  AddressKeeperVector() { size = 0; v = 0; };
25  void resize();
31  void Delete(int pos);
36  int Size() const { return size; };
42  AddressKeeper& operator [] (int pos) { return v[pos]; };
48  const AddressKeeper& operator [] (int pos) const { return v[pos]; };
49 protected:
57  int size;
58 };
59 
60 #endif
This class implements a dynamic vector of AddressKeeper values.
Definition: addresskeepervector.h:10
void resize()
This will add one new empty entry to the vector.
Definition: addresskeepervector.cc:11
AddressKeeper & operator[](int pos)
This will return the value of an element of the vector.
Definition: addresskeepervector.h:42
int Size() const
This will return the size of the vector.
Definition: addresskeepervector.h:36
~AddressKeeperVector()
This is the AddressKeeperVector destructor.
Definition: addresskeepervector.cc:4
AddressKeeper * v
This is the vector of AddressKeeper values.
Definition: addresskeepervector.h:48
int size
This is the size of the vector.
Definition: addresskeepervector.h:57
AddressKeeperVector()
This is the default AddressKeeperVector constructor.
Definition: addresskeepervector.h:15
void Delete(int pos)
This will delete an entry from the vector.
Definition: addresskeepervector.cc:25
This is the class used to store the name, and memory adddress, of the variables used in the model sim...
Definition: addresskeeper.h:10