#include <GraphObserver.h>

Public Member Functions | |
| GraphObserver () | |
| Constructs instance of GraphObserver class. | |
| GraphObserver (const Graph *G) | |
| Constructs instance of GraphObserver class. | |
| virtual | ~GraphObserver () |
| Destroys the instance, unregisters it from watched graph. | |
| void | reregister (const Graph *pG) |
| Associates observer instance with graph G. | |
| virtual void | nodeDeleted (node v)=0 |
| virtual void | nodeAdded (node v)=0 |
| virtual void | edgeDeleted (edge e)=0 |
| virtual void | edgeAdded (edge e)=0 |
| virtual void | reInit ()=0 |
| virtual void | cleared ()=0 |
| const Graph * | getGraph () const |
Protected Attributes | |
| const Graph * | m_pGraph |
| ListIterator< GraphObserver * > | m_itGList |
| watched graph | |
Friends | |
| class | Graph |
Definition at line 92 of file GraphObserver.h.
| ogdf::GraphObserver::GraphObserver | ( | ) | [inline] |
| ogdf::GraphObserver::GraphObserver | ( | const Graph * | G | ) | [inline] |
Constructs instance of GraphObserver class.
| G | is the graph to be watched |
Definition at line 102 of file GraphObserver.h.
| virtual ogdf::GraphObserver::~GraphObserver | ( | ) | [inline, virtual] |
Destroys the instance, unregisters it from watched graph.
Definition at line 107 of file GraphObserver.h.
| void ogdf::GraphObserver::reregister | ( | const Graph * | pG | ) | [inline] |
| virtual void ogdf::GraphObserver::nodeDeleted | ( | node | v | ) | [pure virtual] |
Called by watched graph when a node is deleted Has to be implemented by derived classes
Implemented in ogdf::ClusterGraph, and ogdf::PlanRepInc.
| virtual void ogdf::GraphObserver::nodeAdded | ( | node | v | ) | [pure virtual] |
Called by watched graph when a node is added Has to be implemented by derived classes
Implemented in ogdf::ClusterGraph, and ogdf::PlanRepInc.
| virtual void ogdf::GraphObserver::edgeDeleted | ( | edge | e | ) | [pure virtual] |
Called by watched graph when an edge is deleted Has to be implemented by derived classes
Implemented in ogdf::ClusterGraph, and ogdf::PlanRepInc.
| virtual void ogdf::GraphObserver::edgeAdded | ( | edge | e | ) | [pure virtual] |
Called by watched graph when an edge is added Has to be implemented by derived classes
Implemented in ogdf::ClusterGraph, and ogdf::PlanRepInc.
| virtual void ogdf::GraphObserver::reInit | ( | ) | [pure virtual] |
Called by watched graph when it is reinitialized Has to be implemented by derived classes
Implemented in ogdf::ClusterGraph, and ogdf::PlanRepInc.
| virtual void ogdf::GraphObserver::cleared | ( | ) | [pure virtual] |
Called by watched graph when its clear function is called Has to be implemented by derived classes
Implemented in ogdf::ClusterGraph, and ogdf::PlanRepInc.
| const Graph* ogdf::GraphObserver::getGraph | ( | ) | const [inline] |
friend class Graph [friend] |
Definition at line 93 of file GraphObserver.h.
const Graph* ogdf::GraphObserver::m_pGraph [protected] |
ListIterator<GraphObserver*> ogdf::GraphObserver::m_itGList [protected] |