Geogram
Version 1.9.1-rc
A programming library of geometric algorithms
|
List of VariableObservers. More...
#include <geogram/basic/environment.h>
Public Member Functions | |
VariableObserverList () | |
Creates an empty list of variable observers. | |
void | notify_observers (const std::string &value) |
Notifies all observers in the list. More... | |
void | add_observer (VariableObserver *observer) |
Adds an observer to the list. This adds observer observer at the end of the list only if it is not already present. More... | |
void | remove_observer (VariableObserver *observer) |
Removes an observer from the list. More... | |
List of VariableObservers.
List of variable observers are attached to observed variables in the Environments.
Definition at line 129 of file environment.h.
void GEO::VariableObserverList::add_observer | ( | VariableObserver * | observer | ) |
Adds an observer to the list. This adds observer observer
at the end of the list only if it is not already present.
[in] | observer | a pointer to the VariableObserver to add. |
void GEO::VariableObserverList::notify_observers | ( | const std::string & | value | ) |
Notifies all observers in the list.
[in] | value | the value of the variable being changed. |
void GEO::VariableObserverList::remove_observer | ( | VariableObserver * | observer | ) |
Removes an observer from the list.
[in] | observer | a pointer to the VariableObserver to remove. |