#include <ogdf/hypergraph/HypergraphObserver.h>
Public Member Functions | |
HypergraphObserver () | |
Constructor. | |
HypergraphObserver (const Hypergraph *pH) | |
Constructor assigning pH hypergraph to the observer. | |
virtual | ~HypergraphObserver () |
Destructor. | |
virtual void | cleared ()=0 |
Called by the observed hypergraph when it is cleared. | |
virtual void | hyperedgeAdded (hyperedge e)=0 |
Called by an observed hypergraph when a hyperedge is added. | |
virtual void | hyperedgeDeleted (hyperedge e)=0 |
Called by an observed hypergraph when a hyperedge is deleted. | |
const Hypergraph * | hypergraph () const |
Returns the observer hypergraph. | |
virtual void | hypernodeAdded (hypernode v)=0 |
Called by an observed hypergraph when a hypernode is added. | |
virtual void | hypernodeDeleted (hypernode v)=0 |
Called by an observed hypergraph when a hypernode is deleted. | |
void | init (const Hypergraph *pH) |
Associates an observer instance with hypergraph pH . | |
Protected Attributes | |
const Hypergraph * | m_hypergraph |
Observed hypergraph. | |
ListIterator< HypergraphObserver * > | m_itObserver |
List of all registered hypergraph observers. | |
Friends | |
class | Hypergraph |
Definition at line 48 of file HypergraphObserver.h.
|
inline |
Constructor.
Definition at line 60 of file HypergraphObserver.h.
|
inlineexplicit |
Constructor assigning pH
hypergraph to the observer.
Definition at line 63 of file HypergraphObserver.h.
|
inlinevirtual |
Destructor.
Definition at line 69 of file HypergraphObserver.h.
Called by the observed hypergraph when it is cleared.
Implemented in ogdf::EdgeStandardRep.
Called by an observed hypergraph when a hyperedge is added.
Implemented in ogdf::EdgeStandardRep.
Called by an observed hypergraph when a hyperedge is deleted.
Implemented in ogdf::EdgeStandardRep.
|
inline |
Returns the observer hypergraph.
Definition at line 103 of file HypergraphObserver.h.
Called by an observed hypergraph when a hypernode is added.
Implemented in ogdf::EdgeStandardRep.
Called by an observed hypergraph when a hypernode is deleted.
Implemented in ogdf::EdgeStandardRep.
|
inline |
Associates an observer instance with hypergraph pH
.
Definition at line 76 of file HypergraphObserver.h.
|
friend |
Definition at line 49 of file HypergraphObserver.h.
|
protected |
Observed hypergraph.
Definition at line 53 of file HypergraphObserver.h.
|
protected |
List of all registered hypergraph observers.
Definition at line 56 of file HypergraphObserver.h.