1 #ifndef preyptrvector_h
2 #define preyptrvector_h
This class implements a dynamic vector of Prey values.
Definition: preyptrvector.h:10
void Delete(int pos)
This will delete an entry from the vector.
Definition: preyptrvector.cc:54
PreyPtrVector()
This is the default PreyPtrVector constructor.
Definition: preyptrvector.h:15
Prey *& operator[](int pos)
This will return the value of an element of the vector.
Definition: preyptrvector.h:52
~PreyPtrVector()
This is the PreyPtrVector destructor.
Definition: preyptrvector.cc:15
void resize(Prey *value)
This will add one new entry to the vector.
Definition: preyptrvector.cc:22
int Size() const
This will return the size of the vector.
Definition: preyptrvector.h:46
Prey ** v
This is the vector of Prey values.
Definition: preyptrvector.h:58
int size
This is the size of the vector.
Definition: preyptrvector.h:67
void resizeBlank(int addsize)
This will add new blank (ie. NULL) entries to the vector.
Definition: preyptrvector.cc:37
This is the base class used to model the consumption of a prey.
Definition: prey.h:27