Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

ogdf::HypergraphObserver Class Referenceabstract

#include <ogdf/hypergraph/HypergraphObserver.h>

+ Inheritance diagram for ogdf::HypergraphObserver:

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 Hypergraphhypergraph () 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 &copy)=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 HypergraphgetObserved () const
 
Observeroperator= (const Observer &copy)=delete
 
Observeroperator= (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...
 

Detailed Description

Definition at line 49 of file HypergraphObserver.h.

Constructor & Destructor Documentation

◆ HypergraphObserver() [1/2]

ogdf::HypergraphObserver::HypergraphObserver ( )
default

Constructor.

◆ HypergraphObserver() [2/2]

ogdf::HypergraphObserver::HypergraphObserver ( const Hypergraph pH)
inlineexplicit

Constructor assigning pH hypergraph to the observer.

Definition at line 55 of file HypergraphObserver.h.

Member Function Documentation

◆ cleared()

virtual void ogdf::HypergraphObserver::cleared ( )
pure virtual

Called by the observed hypergraph when it is cleared.

Implemented in ogdf::EdgeStandardRep.

◆ hyperedgeAdded()

virtual void ogdf::HypergraphObserver::hyperedgeAdded ( hyperedge  e)
pure virtual

Called by an observed hypergraph when a hyperedge is added.

Implemented in ogdf::EdgeStandardRep.

◆ hyperedgeDeleted()

virtual void ogdf::HypergraphObserver::hyperedgeDeleted ( hyperedge  e)
pure virtual

Called by an observed hypergraph when a hyperedge is deleted.

Implemented in ogdf::EdgeStandardRep.

◆ hypergraph()

const Hypergraph* ogdf::HypergraphObserver::hypergraph ( ) const
inline

Returns the observer hypergraph.

Definition at line 78 of file HypergraphObserver.h.

◆ hypernodeAdded()

virtual void ogdf::HypergraphObserver::hypernodeAdded ( hypernode  v)
pure virtual

Called by an observed hypergraph when a hypernode is added.

Implemented in ogdf::EdgeStandardRep.

◆ hypernodeDeleted()

virtual void ogdf::HypergraphObserver::hypernodeDeleted ( hypernode  v)
pure virtual

Called by an observed hypergraph when a hypernode is deleted.

Implemented in ogdf::EdgeStandardRep.

◆ init()

void ogdf::HypergraphObserver::init ( const Hypergraph pH)
inline

Associates an observer instance with hypergraph pH.

Deprecated:
"reregister() should be used instead."

Definition at line 60 of file HypergraphObserver.h.


The documentation for this class was generated from the following file: