#include <ogdf/hypergraph/HypergraphObserver.h>
Public Member Functions | |
HypergraphObserver ()=default | |
Constructor. More... | |
HypergraphObserver (const Hypergraph *pH) | |
Constructor assigning pH hypergraph to the observer. More... | |
virtual void | cleared ()=0 |
Called by the observed hypergraph when it is cleared. More... | |
virtual void | hyperedgeAdded (hyperedge e)=0 |
Called by an observed hypergraph when a hyperedge is added. More... | |
virtual void | hyperedgeDeleted (hyperedge e)=0 |
Called by an observed hypergraph when a hyperedge is deleted. More... | |
const Hypergraph * | hypergraph () const |
Returns the observer hypergraph. More... | |
virtual void | hypernodeAdded (hypernode v)=0 |
Called by an observed hypergraph when a hypernode is added. More... | |
virtual void | hypernodeDeleted (hypernode v)=0 |
Called by an observed hypergraph when a hypernode is deleted. More... | |
void | init (const Hypergraph *pH) |
Associates an observer instance with hypergraph pH . More... | |
Public Member Functions inherited from ogdf::Observer< Hypergraph, HypergraphObserver > | |
Observer ()=default | |
Constructs instance of Observer class. More... | |
Observer (const Observer ©)=delete | |
If you want to copy a subclass of Observer, call the default Observer() constructor and optionally also call reregister if it makes sense. More... | |
Observer (Observer &&move)=delete | |
If you want to move a subclass of Observer, call the default Observer() constructor and optionally also call reregister if it makes sense. More... | |
virtual | ~Observer () |
Destroys the instance, unregisters it from watched instance. More... | |
const Hypergraph * | getObserved () const |
Observer & | operator= (const Observer ©)=delete |
Observer & | operator= (Observer &&move)=delete |
virtual void | registrationChanged (const Hypergraph *old) |
Called after reregister() changed the observed instance. More... | |
void | reregister (const Hypergraph *obs) |
Associates observer instance with instance obs . More... | |
Definition at line 49 of file HypergraphObserver.h.
|
default |
Constructor.
|
inlineexplicit |
Constructor assigning pH
hypergraph to the observer.
Definition at line 55 of file HypergraphObserver.h.
|
pure virtual |
Called by the observed hypergraph when it is cleared.
Implemented in ogdf::EdgeStandardRep.
|
pure virtual |
Called by an observed hypergraph when a hyperedge is added.
Implemented in ogdf::EdgeStandardRep.
|
pure virtual |
Called by an observed hypergraph when a hyperedge is deleted.
Implemented in ogdf::EdgeStandardRep.
|
inline |
Returns the observer hypergraph.
Definition at line 78 of file HypergraphObserver.h.
|
pure virtual |
Called by an observed hypergraph when a hypernode is added.
Implemented in ogdf::EdgeStandardRep.
|
pure virtual |
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 60 of file HypergraphObserver.h.