1 #ifndef predatorptrvector_h
2 #define predatorptrvector_h
This class implements a dynamic vector of Predator values.
Definition: predatorptrvector.h:10
int size
This is the size of the vector.
Definition: predatorptrvector.h:62
PredatorPtrVector()
This is the default PredatorPtrVector constructor.
Definition: predatorptrvector.h:15
int Size() const
This will return the size of the vector.
Definition: predatorptrvector.h:41
void resize(Predator *value)
This will add one new entry to the vector.
Definition: predatorptrvector.cc:22
void Delete(int pos)
This will delete an entry from the vector.
Definition: predatorptrvector.cc:37
Predator ** v
This is the vector of Predator values.
Definition: predatorptrvector.h:53
~PredatorPtrVector()
This is the PredatorPtrVector destructor.
Definition: predatorptrvector.cc:15
Predator *& operator[](int pos)
This will return the value of an element of the vector.
Definition: predatorptrvector.h:47
This is the base class used to model the consumption by a predator.
Definition: predator.h:25