#include <lemon/bits/alteration_notifier.h>
The most important application of the alteration observing is the dynamic map implementation.
_Item | The item type what the observers are observing, usually edge or node. |
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 &item) |
Notifies all the registered observers about an Item added to the container. | |
void | add (const std::vector< Item > &items) |
Notifies all the registered observers about more Item added to the container. | |
void | erase (const Item &key) |
Notifies all the registered observers about an Item erased from the container. | |
void | erase (const std::vector< Item > &items) |
Notifies all the registered observers about more Item erased from the container. | |
void | build () |
Notifies all the registered observers about the container is built. | |
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. |
|
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. |
|
Destructor of the AlterationNotifier. |
|
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. |
|
It notifies all the registered observers about an Item added to the container. |
|
It notifies all the registered observers about more Item added to the container. |
|
It notifies all the registered observers about an Item erased from the container. |
|
It notifies all the registered observers about more Item erased from the container. |
|
Notifies all the registered observers about the container is built from an empty container. |
|
Notifies all the registered observers about all Items are erased from the container. |