a ReadWriteMap of LEMON over a structure of ADS indexed by the ids of the items of a graph, ObservableArray or Fenwick among them
More...
#include <ADS/interop/lemon/Maps.h>
|
| using | Key = Item |
| | the items
|
| using | Value |
| | the values, those that the structure reads
|
|
| | IndexMap (const GR &g, S &s) |
| | the map of the items of \( g \) on \( s \); 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 \), by set() of the structure
|
| Value | prefix (const Key &k) const |
| | the aggregate of the values of the ids up to that of \( k \), by prefix() of the structure (e.g., Fenwick)
|
| S & | structure (void) const |
| | the structure
|
template<class GR, class S, class Item = typename GR::Node>
class ADS::lemon_interop::IndexMap< GR, S, Item >
a ReadWriteMap of LEMON over a structure of ADS indexed by the ids of the items of a graph, ObservableArray or Fenwick among them
◆ Key
template<class GR, class S, class Item = typename GR::Node>
◆ Value
template<class GR, class S, class Item = typename GR::Node>
Initial value:std::remove_cvref_t< decltype( detail::readAt(
std::declval< const S & >() , std::size_t() ) ) >
the values, those that the structure reads
◆ IndexMap()
template<class GR, class S, class Item = typename GR::Node>
the map of the items of \( g \) on \( s \); both must stay alive
- Precondition
- \( s \) has room for maxId( Item() ) + 1 values
◆ operator[]()
template<class GR, class S, class Item = typename GR::Node>
◆ prefix()
template<class GR, class S, class Item = typename GR::Node>
the aggregate of the values of the ids up to that of \( k \), by prefix() of the structure (e.g., Fenwick)
◆ set()
template<class GR, class S, class Item = typename GR::Node>
the value of \( k \) set to \( v \), by set() of the structure
◆ structure()
template<class GR, class S, class Item = typename GR::Node>
The documentation for this class was generated from the following file: