Abstract base class for cluster graph observers. More...
#include <ogdf/cluster/ClusterGraph.h>
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 ClusterGraph * | getGraph () const |
Public Member Functions inherited from ogdf::Observer< ClusterGraph, ClusterGraphObserver > | |
Observer ()=default | |
Constructs instance of Observer class. More... | |
Observer (const Observer ©)=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 ClusterGraph * | getObserved () const |
Observer & | operator= (const Observer ©)=delete |
Observer & | operator= (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... | |
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.
|
default |
|
inlineexplicit |
Definition at line 330 of file ClusterGraph.h.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
inline |
Definition at line 336 of file ClusterGraph.h.