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 ClusterGraph * | getGraph () const |
Public Member Functions inherited from ogdf::Observer< ClusterGraph, ClusterGraphObserver > | |
| Observer ()=default | |
| Constructs unregistered instance of Observer class. | |
| Observer (const ClusterGraph *R) | |
| 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. | |
| 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. | |
| virtual | ~Observer () |
| Destroys the instance, unregisters it from watched instance. | |
| 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. | |
| void | reregister (const ClusterGraph *obs) |
Associates observer instance with instance obs. | |
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 333 of file ClusterGraph.h.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
inline |
Definition at line 339 of file ClusterGraph.h.