Biorithm  1.1
Public Member Functions
MyAbstractGraphModification Class Reference

An abstract class to keep track of updates to a graph. The design is to encapsulate each type of update in its own sub-class. An example of an update is the addition or deletion of a single node or edge. The key member function is reverse(), which allows the update to be reversed on its argument. ! More...

#include <graph.C>

Inheritance diagram for MyAbstractGraphModification:
MyGraphEdgeDeletion MyGraphEdgeInsertion MyGraphNodeDeletion MyGraphNodeInsertion

List of all members.

Public Member Functions

 MyAbstractGraphModification ()
virtual ~MyAbstractGraphModification ()
 Destructor.
virtual
MyAbstractGraphModification
clone ()=0
 Clone yourself.
virtual bool reverse (MyGraph &graph)=0

Detailed Description

An abstract class to keep track of updates to a graph. The design is to encapsulate each type of update in its own sub-class. An example of an update is the addition or deletion of a single node or edge. The key member function is reverse(), which allows the update to be reversed on its argument. !


Constructor & Destructor Documentation

Constructor. Each sub-class will add its own sub-class specific constructors.


Member Function Documentation

virtual bool MyAbstractGraphModification::reverse ( MyGraph graph) [pure virtual]

Reverse the effect of the modification on graph and return true if the reversal succeeded.

Implemented in MyGraphNodeInsertion, MyGraphNodeDeletion, MyGraphEdgeInsertion, and MyGraphEdgeDeletion.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Typedefs Friends