Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
ogdf::HypergraphObserver Class Referenceabstract

#include <ogdf/hypergraph/HypergraphObserver.h>

+ Inheritance diagram for ogdf::HypergraphObserver:

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 Hypergraphhypergraph () 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 Hypergraphm_hypergraph
 Observed hypergraph.
 
ListIterator< HypergraphObserver * > m_itObserver
 List of all registered hypergraph observers.
 

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 60 of file HypergraphObserver.h.

◆ HypergraphObserver() [2/2]

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

Constructor assigning pH hypergraph to the observer.

Definition at line 63 of file HypergraphObserver.h.

◆ ~HypergraphObserver()

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

Destructor.

Definition at line 69 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 103 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 76 of file HypergraphObserver.h.

Friends And Related Symbol Documentation

◆ Hypergraph

Definition at line 49 of file HypergraphObserver.h.

Member Data Documentation

◆ m_hypergraph

const Hypergraph* ogdf::HypergraphObserver::m_hypergraph
protected

Observed hypergraph.

Definition at line 53 of file HypergraphObserver.h.

◆ m_itObserver

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

List of all registered hypergraph observers.

Definition at line 56 of file HypergraphObserver.h.


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