Gadget
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
printerptrvector.h
Go to the documentation of this file.
1 #ifndef printerptrvector_h
2 #define printerptrvector_h
3 
4 class Printer;
5 
11 public:
15  PrinterPtrVector() { size = 0; v = 0; };
20  PrinterPtrVector(const PrinterPtrVector& initial);
30  void resize(Printer* value);
36  void Delete(int pos);
41  int Size() const { return size; };
47  Printer*& operator [] (int pos) { return v[pos]; };
53  Printer* const& operator [] (int pos) const { return v[pos]; };
54 protected:
62  int size;
63 };
64 
65 #endif
This class implements a dynamic vector of Printer values.
Definition: printerptrvector.h:10
void Delete(int pos)
This will delete an entry from the vector.
Definition: printerptrvector.cc:37
PrinterPtrVector()
This is the default PrinterPtrVector constructor.
Definition: printerptrvector.h:15
int size
This is the size of the vector.
Definition: printerptrvector.h:62
~PrinterPtrVector()
This is the PrinterPtrVector destructor.
Definition: printerptrvector.cc:15
Printer *& operator[](int pos)
This will return the value of an element of the vector.
Definition: printerptrvector.h:47
Printer ** v
This is the vector of Printer values.
Definition: printerptrvector.h:53
void resize(Printer *value)
This will add one new entry to the vector.
Definition: printerptrvector.cc:22
int Size() const
This will return the size of the vector.
Definition: printerptrvector.h:41
This is the base class used to print the modelled population during a model simulation.
Definition: printer.h:26