Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

ogdf::ClusterGraphObserver Class Referenceabstract

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

#include <ogdf/cluster/ClusterGraph.h>

+ Inheritance diagram for ogdf::ClusterGraphObserver:

Public Member Functions

 ClusterGraphObserver ()=default
 
 ClusterGraphObserver (const ClusterGraph *CG)
 
virtual void clusterAdded (cluster v)=0
 
virtual void clusterDeleted (cluster v)=0
 
virtual void clustersCleared ()=0
 
const ClusterGraphgetGraph () const
 
- Public Member Functions inherited from ogdf::Observer< ClusterGraph, ClusterGraphObserver >
 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 ClusterGraphgetObserved () const
 
Observeroperator= (const Observer &copy)=delete
 
Observeroperator= (Observer &&move)=delete
 
virtual void registrationChanged (const ClusterGraph *old)
 Called after reregister() changed the observed instance. More...
 
void reregister (const ClusterGraph *obs)
 Associates observer instance with instance obs. More...
 

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 326 of file ClusterGraph.h.

Constructor & Destructor Documentation

◆ ClusterGraphObserver() [1/2]

ogdf::ClusterGraphObserver::ClusterGraphObserver ( )
default

◆ ClusterGraphObserver() [2/2]

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

Definition at line 330 of file ClusterGraph.h.

Member Function Documentation

◆ clusterAdded()

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

◆ clusterDeleted()

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

◆ clustersCleared()

virtual void ogdf::ClusterGraphObserver::clustersCleared ( )
pure virtual

◆ getGraph()

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

Definition at line 336 of file ClusterGraph.h.


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