|
ADS
Algorithms and Data Structures
|
a map of LEMON whose writes are told as Changed< A , int , V >, the id of the item its handle More...
#include <ADS/interop/lemon/Maps.h>
Public types | |
| using | Key = typename Map::Key |
| the items | |
| using | Value = typename Map::Value |
| the values | |
| using | Event = mod::Changed< A , int , Value > |
| a write | |
| using | modifications = mod::list< Event > |
| the events | |
| using | Subject = typename Policy::template bind< modifications , ObservedMap > |
| the subject | |
Public member functions | |
| template<class... O> | |
| ObservedMap (const GR &g, Map &m, O &... o) | |
| the map \( m \) of the items of \( g \), the static observers o...; both must stay alive | |
| Value | operator[] (const Key &k) const |
| the value of \( k \) | |
| void | set (const Key &k, const Value &v) |
| the value of \( k \) set to \( v \), and Changed | |
| const Map & | map (void) const |
| the map below | |
| Subject & | subject (void) |
| the subject, for ADS::batch() and ADS::quiet() | |
| template<class O> requires ( Subject::dynamic ) | |
| int | attach (O &o) |
| attaches the observer \( o \) and gives its number | |
| void | detach (int id) |
| detaches the observer number \( \mathit{id} \) | |
a map of LEMON whose writes are told as Changed< A , int , V >, the id of the item its handle
| using ADS::lemon_interop::ObservedMap< GR, Map, A, Policy >::Event = mod::Changed< A , int , Value > |
a write
| using ADS::lemon_interop::ObservedMap< GR, Map, A, Policy >::Key = typename Map::Key |
the items
| using ADS::lemon_interop::ObservedMap< GR, Map, A, Policy >::modifications = mod::list< Event > |
the events
| using ADS::lemon_interop::ObservedMap< GR, Map, A, Policy >::Subject = typename Policy::template bind< modifications , ObservedMap > |
the subject
| using ADS::lemon_interop::ObservedMap< GR, Map, A, Policy >::Value = typename Map::Value |
the values
|
inline |
the map \( m \) of the items of \( g \), the static observers o...; both must stay alive
|
inline |
attaches the observer \( o \) and gives its number
|
inline |
detaches the observer number \( \mathit{id} \)
|
inlinenodiscard |
the map below
|
inlinenodiscard |
the value of \( k \)
|
inline |
the value of \( k \) set to \( v \), and Changed
|
inlinenodiscard |
the subject, for ADS::batch() and ADS::quiet()