ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::lemon_interop::DenseMap< GR, T, Item > Class Template Reference

a ReferenceMap of LEMON by the ids of the items of a graph, on an array of its own, not attached to the notifier of the graph More...

#include <ADS/interop/lemon/Maps.h>

Public types

using Key = Item
 the items
using Value = T
 the values
using Reference = T &
 a reference to a value
using ConstReference = const T &
 a reference to a value read
using ReferenceMapTag = ::lemon::True
 a ReferenceMap

Public member functions

 DenseMap (const GR &g, const T &t=T())
 the map of the items of \( g \), all \( t \); \( g \) must stay alive and keep its items
Reference operator[] (const Key &k)
 the value of \( k \)
ConstReference operator[] (const Key &k) const
 the value of \( k \), read
void set (const Key &k, const T &t)
 the value of \( k \) set to \( t \)
std::size_t size (void) const
 the number of values, maxId( Item() ) + 1 at the construction

Detailed description

template<class GR, class T, class Item = typename GR::Node>
class ADS::lemon_interop::DenseMap< GR, T, Item >

a ReferenceMap of LEMON by the ids of the items of a graph, on an array of its own, not attached to the notifier of the graph

Member typedef documentation

◆ ConstReference

template<class GR, class T, class Item = typename GR::Node>
using ADS::lemon_interop::DenseMap< GR, T, Item >::ConstReference = const T &

a reference to a value read

◆ Key

template<class GR, class T, class Item = typename GR::Node>
using ADS::lemon_interop::DenseMap< GR, T, Item >::Key = Item

the items

◆ Reference

template<class GR, class T, class Item = typename GR::Node>
using ADS::lemon_interop::DenseMap< GR, T, Item >::Reference = T &

a reference to a value

◆ ReferenceMapTag

template<class GR, class T, class Item = typename GR::Node>
using ADS::lemon_interop::DenseMap< GR, T, Item >::ReferenceMapTag = ::lemon::True

a ReferenceMap

◆ Value

template<class GR, class T, class Item = typename GR::Node>
using ADS::lemon_interop::DenseMap< GR, T, Item >::Value = T

the values

Constructor and destructor documentation

◆ DenseMap()

template<class GR, class T, class Item = typename GR::Node>
ADS::lemon_interop::DenseMap< GR, T, Item >::DenseMap ( const GR & g,
const T & t = T() )
inlineexplicit

the map of the items of \( g \), all \( t \); \( g \) must stay alive and keep its items

Member function documentation

◆ operator[]() [1/2]

template<class GR, class T, class Item = typename GR::Node>
Reference ADS::lemon_interop::DenseMap< GR, T, Item >::operator[] ( const Key & k)
inlinenodiscard

the value of \( k \)

◆ operator[]() [2/2]

template<class GR, class T, class Item = typename GR::Node>
ConstReference ADS::lemon_interop::DenseMap< GR, T, Item >::operator[] ( const Key & k) const
inlinenodiscard

the value of \( k \), read

◆ set()

template<class GR, class T, class Item = typename GR::Node>
void ADS::lemon_interop::DenseMap< GR, T, Item >::set ( const Key & k,
const T & t )
inline

the value of \( k \) set to \( t \)

◆ size()

template<class GR, class T, class Item = typename GR::Node>
std::size_t ADS::lemon_interop::DenseMap< GR, T, Item >::size ( void ) const
inlinenodiscard

the number of values, maxId( Item() ) + 1 at the construction


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