ObjectCollection Class Reference

#include <ObjectCollection.h>

Inherits Object.

Collaboration diagram for ObjectCollection:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ObjectCollection ()
 ~ObjectCollection ()
virtual class ObjectGet (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

ObjectLinkGetLast ()
ObjectLinkGetFirst ()

Private Attributes

ObjectLinkFirst
ObjectLinkLast
int NumberOfObjects

Friends

class CollectionIterator


Detailed Description

Definition at line 8 of file ObjectCollection.h.


Constructor & Destructor Documentation

ObjectCollection::ObjectCollection (  ) 

Definition at line 9 of file ObjectCollection.cpp.

ObjectCollection::~ObjectCollection (  ) 

Definition at line 13 of file ObjectCollection.cpp.

References First, and Last.


Member Function Documentation

class Object * ObjectCollection::Get ( int  pAt  )  [virtual]

Definition at line 20 of file ObjectCollection.cpp.

References First, GetLength(), ObjectLink::GetNext(), and ObjectLink::GetValue().

Here is the call graph for this function:

ObjectLink * ObjectCollection::GetFirst (  )  [private]

Definition at line 71 of file ObjectCollection.cpp.

References First.

ObjectLink * ObjectCollection::GetLast (  )  [private]

Definition at line 79 of file ObjectCollection.cpp.

References Last.

Referenced by Put().

Here is the caller graph for this function:

int ObjectCollection::GetLength (  ) 

Definition at line 47 of file ObjectCollection.cpp.

References NumberOfObjects.

Referenced by Get(), IsEmpty(), and Print().

Here is the caller graph for this function:

bool ObjectCollection::IsEmpty (  ) 

Definition at line 43 of file ObjectCollection.cpp.

References GetLength().

Referenced by Put().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void ObjectCollection::SetFirst ( ObjectLink oL  )  [protected]

Definition at line 67 of file ObjectCollection.cpp.

References First.

Referenced by Put().

Here is the caller graph for this function:

void ObjectCollection::SetLast ( ObjectLink oL  )  [protected]

Definition at line 75 of file ObjectCollection.cpp.

References Last.

Referenced by Put().

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class CollectionIterator [friend]

Definition at line 10 of file ObjectCollection.h.

Referenced by Print().


Member Data Documentation

Definition at line 23 of file ObjectCollection.h.

Referenced by GetLast(), SetLast(), and ~ObjectCollection().

Definition at line 42 of file ObjectCollection.h.

Referenced by GetLength(), and Put().


The documentation for this class was generated from the following files:

Generated on Sat Mar 21 17:11:37 2009 for Iterator Design Pattern by  doxygen 1.5.8