#include <lemon/alteration_notifier.h>
Inheritance diagram for AlterationNotifier::ObserverBase:
The observer interface contains some pure virtual functions to override. The add() and erase() functions are to notify the oberver when one item is added or erased.
The build() and clear() members are to notify the observer about the container is builded from an empty container or is cleared to an empty container.
Definition at line 73 of file alteration_notifier.h.
Public Member Functions | |
virtual void | add (const Item &)=0 |
The member function to notificate the observer about an item is added to the container. | |
virtual void | erase (const Item &)=0 |
The member function to notificate the observer about an item is erased from the container. | |
virtual void | build ()=0 |
The member function to notificate the observer about the container is builded. | |
virtual void | clear ()=0 |
The member function to notificate the observer about all items are erased from the container. | |
Protected Member Functions | |
ObserverBase () | |
Default constructor. | |
void | attach (AlterationNotifier &r) |
Attaches the observer into an AlterationNotifier. | |
void | detach () |
Detaches the observer into an AlterationNotifier. | |
Registry * | getRegistry () const |
Gives back a pointer to the registry what the map attached into. | |
bool | attached () const |
Gives back true when the observer is attached into a registry. |
|
Default constructor for ObserverBase. Definition at line 83 of file alteration_notifier.h. |
|
This member attaches the observer into an AlterationNotifier. Definition at line 91 of file alteration_notifier.h. |
Here is the call graph for this function:
|
This member detaches the observer from an AlterationNotifier. Definition at line 100 of file alteration_notifier.h. |
Here is the call graph for this function:
|
This function gives back a pointer to the registry what the map attached into. Definition at line 112 of file alteration_notifier.h. |
|
The add() member function notificates the observer about an item is added to the container. It have to be overrided in the subclasses. |
|
The erase() member function notificates the observer about an item is erased from the container. It have to be overrided in the subclasses. |
|
The build() member function notificates the observer about the container is builded from an empty container. It have to be overrided in the subclasses. Implemented in VectorMap, VectorMap< Graph, Edge, _Value >, and VectorMap< Graph, Node, _Value >. |
|
The clear() member function notificates the observer about all items are erased from the container. It have to be overrided in the subclasses. Implemented in VectorMap, VectorMap< Graph, Edge, _Value >, and VectorMap< Graph, Node, _Value >. |