76 if (m_pGraph) m_pGraph->unregisterStructure(m_itGList);
82 if (m_pGraph) m_pGraph->unregisterStructure(m_itGList);
88 virtual void nodeDeleted(
node v) = 0;
92 virtual void nodeAdded(
node v) = 0;
96 virtual void edgeDeleted(
edge e) = 0;
100 virtual void edgeAdded(
edge e) = 0;
104 virtual void reInit() = 0;
108 virtual void cleared() = 0;
GraphObserver()
Constructs instance of GraphObserver class.
Data type for general directed graphs (adjacency list representation).
ListIterator< GraphObserver * > registerStructure(GraphObserver *pStructure) const
Registers a graph observer (e.g. a ClusterGraph).
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
ListIterator< GraphObserver * > m_itGList
watched graph
GraphObserver(const Graph *G)
Constructs instance of GraphObserver class.
const Graph * getGraph() const
void reregister(const Graph *pG)
Associates observer instance with graph G.
Class for the representation of edges.
Class for the representation of nodes.
Encapsulates a pointer to a list element.
virtual ~GraphObserver()
Destroys the instance, unregisters it from watched graph.
Includes declaration of graph class.
The namespace for all OGDF objects.
Abstract Base class for graph observers.
Declaration of doubly linked lists and iterators.