#include <lemon/alteration_notifier.h>
Inheritance diagram for AlterationNotifier:
The most important application of the alteration observing is the dynamic map implementation when the observers are observing the alterations in the graph.
_Item | The item type what the observers are observing, usually edge or node. |
Definition at line 52 of file alteration_notifier.h.
Public Member Functions | |
AlterationNotifier () | |
Default constructor. | |
AlterationNotifier (const AlterationNotifier &) | |
Copy Constructor of the AlterationNotifier. | |
AlterationNotifier & | operator= (const AlterationNotifier &) |
Assign operator. | |
~AlterationNotifier () | |
Destructor. | |
void | add (const Item &key) |
Notifies all the registered observers about an Item added to the container. | |
void | erase (const Item &key) |
Notifies all the registered observers about an Item erased from the container. | |
void | build () |
Notifies all the registered observers about the container is builded. | |
void | clear () |
Notifies all the registered observers about all Items are erased. | |
Classes | |
class | ObserverBase |
ObserverBase is the base class for the observers. More... |
|
The default constructor of the AlterationNotifier. It creates an empty registry. Definition at line 183 of file alteration_notifier.h. |
|
Copy constructor of the AlterationNotifier. It creates only an empty registry because the copiable registry's observers have to be registered still into that registry. Definition at line 190 of file alteration_notifier.h. |
|
Destructor of the AlterationNotifier. Definition at line 208 of file alteration_notifier.h. |
|
Assign operator for the AlterationNotifier. It makes the notifier only empty because the copiable notifier's observers have to be registered still into that registry. Definition at line 197 of file alteration_notifier.h. |
|
It notifies all the registered observers about an Item added to the container. Definition at line 237 of file alteration_notifier.h. |
|
It notifies all the registered observers about an Item erased from the container. Definition at line 248 of file alteration_notifier.h. |
|
Notifies all the registered observers about the container is builded from an empty container. Definition at line 260 of file alteration_notifier.h. |
|
Notifies all the registered observers about all Items are erased from the container. Definition at line 272 of file alteration_notifier.h. |