Open
Graph Drawing
Framework

 v. 2022.02 (Dogwood)
 

ogdf::HypergraphObserver Class Referenceabstract

#include <ogdf/hypergraph/HypergraphObserver.h>

+ Inheritance diagram for ogdf::HypergraphObserver:

Public Member Functions

 HypergraphObserver ()
 Constructor. More...
 
 HypergraphObserver (const Hypergraph *pH)
 Constructor assigning pH hypergraph to the observer. More...
 
virtual ~HypergraphObserver ()
 Destructor. 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...
 

Protected Attributes

const Hypergraphm_hypergraph
 Observed hypergraph. More...
 
ListIterator< HypergraphObserver * > m_itObserver
 List of all registered hypergraph observers. More...
 

Friends

class Hypergraph
 

Detailed Description

Definition at line 48 of file HypergraphObserver.h.

Constructor & Destructor Documentation

◆ HypergraphObserver() [1/2]

ogdf::HypergraphObserver::HypergraphObserver ( )
inline

Constructor.

Definition at line 63 of file HypergraphObserver.h.

◆ HypergraphObserver() [2/2]

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

Constructor assigning pH hypergraph to the observer.

Definition at line 69 of file HypergraphObserver.h.

◆ ~HypergraphObserver()

virtual ogdf::HypergraphObserver::~HypergraphObserver ( )
inlinevirtual

Destructor.

Definition at line 76 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 109 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.

Definition at line 83 of file HypergraphObserver.h.

Friends And Related Function Documentation

◆ Hypergraph

friend class Hypergraph
friend

Definition at line 50 of file HypergraphObserver.h.

Member Data Documentation

◆ m_hypergraph

const Hypergraph* ogdf::HypergraphObserver::m_hypergraph
protected

Observed hypergraph.

Definition at line 55 of file HypergraphObserver.h.

◆ m_itObserver

ListIterator<HypergraphObserver *> ogdf::HypergraphObserver::m_itObserver
protected

List of all registered hypergraph observers.

Definition at line 58 of file HypergraphObserver.h.


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