#include <ObjectCollection.h>
Inherits Object.
Public Member Functions | |
ObjectCollection () | |
~ObjectCollection () | |
virtual class Object * | Get (int pAt) |
virtual void | Put (Object *pO) |
bool | IsEmpty () |
int | GetLength () |
void | Print () |
Protected Member Functions | |
void | SetFirst (ObjectLink *) |
void | SetLast (ObjectLink *) |
Private Member Functions | |
ObjectLink * | GetLast () |
ObjectLink * | GetFirst () |
Private Attributes | |
ObjectLink * | First |
ObjectLink * | Last |
int | NumberOfObjects |
Friends | |
class | CollectionIterator |
Definition at line 8 of file ObjectCollection.h.
ObjectCollection::ObjectCollection | ( | ) |
Definition at line 9 of file ObjectCollection.cpp.
ObjectCollection::~ObjectCollection | ( | ) |
class Object * ObjectCollection::Get | ( | int | pAt | ) | [virtual] |
Definition at line 20 of file ObjectCollection.cpp.
References First, GetLength(), ObjectLink::GetNext(), and ObjectLink::GetValue().
ObjectLink * ObjectCollection::GetFirst | ( | ) | [private] |
ObjectLink * ObjectCollection::GetLast | ( | ) | [private] |
Definition at line 79 of file ObjectCollection.cpp.
References Last.
Referenced by Put().
int ObjectCollection::GetLength | ( | ) |
Definition at line 47 of file ObjectCollection.cpp.
References NumberOfObjects.
Referenced by Get(), IsEmpty(), and Print().
bool ObjectCollection::IsEmpty | ( | ) |
Definition at line 43 of file ObjectCollection.cpp.
References GetLength().
Referenced by Put().
void ObjectCollection::Print | ( | ) | [virtual] |
Reimplemented from Object.
Definition at line 51 of file ObjectCollection.cpp.
References CollectionIterator, GetLength(), CollectionIterator::GetNext(), and Object::Print().
Referenced by main().
void ObjectCollection::Put | ( | Object * | pO | ) | [virtual] |
Definition at line 31 of file ObjectCollection.cpp.
References GetLast(), IsEmpty(), NumberOfObjects, SetFirst(), SetLast(), and ObjectLink::SetNext().
Referenced by main().
void ObjectCollection::SetFirst | ( | ObjectLink * | oL | ) | [protected] |
Definition at line 67 of file ObjectCollection.cpp.
References First.
Referenced by Put().
void ObjectCollection::SetLast | ( | ObjectLink * | oL | ) | [protected] |
Definition at line 75 of file ObjectCollection.cpp.
References Last.
Referenced by Put().
friend class CollectionIterator [friend] |
ObjectLink* ObjectCollection::First [private] |
Definition at line 22 of file ObjectCollection.h.
Referenced by CollectionIterator::CollectionIterator(), Get(), GetFirst(), SetFirst(), and ~ObjectCollection().
ObjectLink* ObjectCollection::Last [private] |
Definition at line 23 of file ObjectCollection.h.
Referenced by GetLast(), SetLast(), and ~ObjectCollection().
int ObjectCollection::NumberOfObjects [private] |