|
dune-common 2.10
|
Adapter to turn a random access iterator into a property map. More...
#include <dune/common/propertymap.hh>

Public Types | |
| typedef RAI | RandomAccessIterator |
| The type of the random access iterator. | |
| typedef IM | IndexMap |
| The type of the index map. | |
| typedef IndexMap::KeyType | KeyType |
| The key type of the property map. | |
| typedef T | ValueType |
| The value type of the property map. | |
| typedef R | Reference |
| The reference type of the property map. | |
| typedef LvaluePropertyMapTag | Category |
| The category of this property map. | |
Public Member Functions | |
| IteratorPropertyMap (RandomAccessIterator iter, const IndexMap &im=IndexMap()) | |
| Constructor. | |
| IteratorPropertyMap () | |
| Constructor. | |
| Reference | operator[] (KeyType key) const |
| Access the a value by reference. | |
Adapter to turn a random access iterator into a property map.
| typedef LvaluePropertyMapTag Dune::IteratorPropertyMap< RAI, IM, T, R >::Category |
The category of this property map.
| typedef IM Dune::IteratorPropertyMap< RAI, IM, T, R >::IndexMap |
The type of the index map.
This will convert the KeyType to std::ptrdiff_t via operator[]().
| typedef IndexMap::KeyType Dune::IteratorPropertyMap< RAI, IM, T, R >::KeyType |
The key type of the property map.
| typedef RAI Dune::IteratorPropertyMap< RAI, IM, T, R >::RandomAccessIterator |
The type of the random access iterator.
| typedef R Dune::IteratorPropertyMap< RAI, IM, T, R >::Reference |
The reference type of the property map.
| typedef T Dune::IteratorPropertyMap< RAI, IM, T, R >::ValueType |
The value type of the property map.
|
inline |
Constructor.
| iter | The random access iterator that provides the mapping. |
| im | The index map that maps the KeyType to the difference_type of the iterator. |
|
inline |
Constructor.
|
inline |
Access the a value by reference.