Geogram  Version 1.9.0
A programming library of geometric algorithms
GEO::VariableObserverList Class Reference

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...
 

Detailed Description

List of VariableObservers.

List of variable observers are attached to observed variables in the Environments.

Definition at line 129 of file environment.h.

Member Function Documentation

◆ add_observer()

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.

Parameters
[in]observera pointer to the VariableObserver to add.

◆ notify_observers()

void GEO::VariableObserverList::notify_observers ( const std::string &  value)

Notifies all observers in the list.

Parameters
[in]valuethe value of the variable being changed.

◆ remove_observer()

void GEO::VariableObserverList::remove_observer ( VariableObserver observer)

Removes an observer from the list.

Parameters
[in]observera pointer to the VariableObserver to remove.

The documentation for this class was generated from the following file: