65 m_itObserver =
pH->registerObserver(
this);
83 m_itObserver =
pH->registerObserver(
this);
Declaration and a partial implementation of a Hypergraph class partly based on the original classes f...
Declaration of doubly linked lists and iterators.
Class for the representation of hyperedges.
void unregisterObserver(ListIterator< HypergraphObserver * > it) const
Unregisters a hypergraph observer.
void init(const Hypergraph *pH)
Associates an observer instance with hypergraph pH.
virtual void hyperedgeDeleted(hyperedge e)=0
Called by an observed hypergraph when a hyperedge is deleted.
virtual void hypernodeDeleted(hypernode v)=0
Called by an observed hypergraph when a hypernode is deleted.
HypergraphObserver()
Constructor.
virtual void hyperedgeAdded(hyperedge e)=0
Called by an observed hypergraph when a hyperedge is added.
const Hypergraph * m_hypergraph
Observed hypergraph.
virtual ~HypergraphObserver()
Destructor.
virtual void cleared()=0
Called by the observed hypergraph when it is cleared.
const Hypergraph * hypergraph() const
Returns the observer hypergraph.
HypergraphObserver(const Hypergraph *pH)
Constructor assigning pH hypergraph to the observer.
virtual void hypernodeAdded(hypernode v)=0
Called by an observed hypergraph when a hypernode is added.
ListIterator< HypergraphObserver * > m_itObserver
List of all registered hypergraph observers.
Class for the representation of hypernodes.
Encapsulates a pointer to a list element.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.