Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

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

Abstract base class for cluster graph observers. More...

#include <ogdf/cluster/ClusterGraphObserver.h>

Public Member Functions

 ClusterGraphObserver ()
 
 ClusterGraphObserver (const ClusterGraph *CG)
 
virtual ~ClusterGraphObserver ()
 
virtual void clusterAdded (cluster v)=0
 
virtual void clusterDeleted (cluster v)=0
 
const ClusterGraphgetGraph () const
 
void reregister (const ClusterGraph *pCG)
 

Protected Attributes

ListIterator< ClusterGraphObserver * > m_itCGList
 
const ClusterGraphm_pClusterGraph
 

Friends

class ClusterGraph
 

Detailed Description

Abstract base class for cluster graph observers.

If a class needs to keep track of changes in a clustered graph like addition or deletion of clusters, you can derive it from ClusterGraphObserver and override the notification methods clusterDeleted, clusterAdded.

Definition at line 53 of file ClusterGraphObserver.h.

Constructor & Destructor Documentation

◆ ClusterGraphObserver() [1/2]

ogdf::ClusterGraphObserver::ClusterGraphObserver ( )
inline

Definition at line 57 of file ClusterGraphObserver.h.

◆ ClusterGraphObserver() [2/2]

ogdf::ClusterGraphObserver::ClusterGraphObserver ( const ClusterGraph CG)
inlineexplicit

Definition at line 59 of file ClusterGraphObserver.h.

◆ ~ClusterGraphObserver()

virtual ogdf::ClusterGraphObserver::~ClusterGraphObserver ( )
inlinevirtual

Definition at line 63 of file ClusterGraphObserver.h.

Member Function Documentation

◆ clusterAdded()

virtual void ogdf::ClusterGraphObserver::clusterAdded ( cluster  v)
pure virtual

◆ clusterDeleted()

virtual void ogdf::ClusterGraphObserver::clusterDeleted ( cluster  v)
pure virtual

◆ getGraph()

const ClusterGraph * ogdf::ClusterGraphObserver::getGraph ( ) const
inline

Definition at line 86 of file ClusterGraphObserver.h.

◆ reregister()

void ogdf::ClusterGraphObserver::reregister ( const ClusterGraph pCG)
inline

Definition at line 70 of file ClusterGraphObserver.h.

Friends And Related Symbol Documentation

◆ ClusterGraph

Definition at line 54 of file ClusterGraphObserver.h.

Member Data Documentation

◆ m_itCGList

ListIterator<ClusterGraphObserver*> ogdf::ClusterGraphObserver::m_itCGList
protected

Definition at line 92 of file ClusterGraphObserver.h.

◆ m_pClusterGraph

const ClusterGraph* ogdf::ClusterGraphObserver::m_pClusterGraph
protected

Definition at line 89 of file ClusterGraphObserver.h.


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