LocationNode

This class is a utility object that allows Location objects to be linked together to form a list without modifying the code of the Location class (e.g., to insert a pointer to the next element in the list). Each LocationNode contains a pointer to a Location object that it represents in the list, and a pointer to the next LocationNode in the list.

[ Index | Source | Summary | Member Functions ]

Quick Index


Class Summary

class LocationNode

{

public:
LocationNode(Location *loc);
LocationNode* Next();
void Next(LocationNode* nxt);
Location& Contents();
~LocationNode();
}; // LocationNode

Back to the top of LocationNode


LocationNode(Location *loc);

Construct a LocationNode representing a given Location object.

    LocationNode(Location *loc);

Back to the top of LocationNode


LocationNode* Next();

Return a pointer to the next LocationNode in the list.

    LocationNode* Next();

Back to the top of LocationNode


void Next(LocationNode* nxt);

Set the current LocationNode object to point to a given LocationNode as its successor in the linked list.

    void Next(LocationNode* nxt);

Back to the top of LocationNode


Location& Contents();

Return the Location object represented by the the current LocationNode. The Location object is returned by reference so that methods may be applied directly to the Location object.

    Location& Contents();

Back to the top of LocationNode


~LocationNode();

This destructor deletes the Location object pointed to by the current LocationNode. It does NOT delete its successor LocationNode in the list.

   ~LocationNode();

Back to the top of LocationNode


Member Functions

public:
LocationNode* Next();
void Next(LocationNode* nxt);
Location& Contents();

Back to the top of LocationNode


Generated from source by the Cocoon utilities on Thu Apr 02 12:40:34 1998 .

Report problems to jkotula@unimax.com