Main Page | Class Hierarchy | Data Structures | File List | Data Fields | Globals

Item Class Reference

#include <Observer.hpp>


Detailed Description

Item of a notification.

Internals
The Item class can currently contain either a node or an edge. We could not think of anything else which could force a graph so send an update to it's observers. It can be created 'on the fly' and passed to the notify() method of the subject class.


Public Member Functions

 Item ()
 Empty Constructor.
 Item (const Item &item)
 Copy Constructor.
 Item (Node n)
 Constructor: Node item.
 Item (Edge e)
 Constructor: Edge item.

Data Fields

int type
 The type: 0 for no valid member, 1 for Node, 2 for Edge.
Node node
 Node, has a valid value only if type==1.
Edge edge
 Edge, has a valid value only if type==2.


Constructor & Destructor Documentation

Item  )  [inline]
 

Empty Constructor.

Item const Item item  )  [inline]
 

Copy Constructor.

Item Node  n  )  [inline]
 

Constructor: Node item.

Item Edge  e  )  [inline]
 

Constructor: Edge item.


Field Documentation

Edge edge
 

Edge, has a valid value only if type==2.

Node node
 

Node, has a valid value only if type==1.

int type
 

The type: 0 for no valid member, 1 for Node, 2 for Edge.


Generated on Sun Nov 5 12:06:28 2006 for Graph by  doxygen 1.4.1