Dune::IteratorPropertyMap< RAI, IM, T, R > Class Template Reference

#include <propertymap.hh>

Inherits Dune::RAPropertyMapHelper< R, Dune::IteratorPropertyMap< RAI, IM, T, R > >.

List of all members.


Detailed Description

template<class RAI, class IM, class T = typename std::iterator_traits<RAI>::value_type, class R = typename std::iterator_traits<RAI>::reference>
class Dune::IteratorPropertyMap< RAI, IM, T, R >

Adapter to turn a random access iteratorinto a properties map.

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)
 Constructor.
 IteratorPropertyMap ()
 Constructor.
Reference operator[] (KeyType key) const
 Access the a value by reference.

Member Typedef Documentation

template<class RAI, class IM, class T = typename std::iterator_traits<RAI>::value_type, class R = typename std::iterator_traits<RAI>::reference>
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[]().


Constructor & Destructor Documentation

template<class RAI, class IM, class T = typename std::iterator_traits<RAI>::value_type, class R = typename std::iterator_traits<RAI>::reference>
Dune::IteratorPropertyMap< RAI, IM, T, R >::IteratorPropertyMap ( RandomAccessIterator  iter,
const IndexMap im 
) [inline]

Constructor.

Parameters:
iter The random access iterator that provides the mapping.
im The index map that maps the KeyType to the difference_type of the iterator.


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

Generated on 6 Nov 2008 with Doxygen (ver 1.5.6) [logfile].