libpsynth 0.2.1
Public Types | Public Member Functions
psynth::base::map_const_iterator< Key, Data > Class Template Reference

This class acts as wrapper to a map::const_iterator. More...

#include <iterator.hpp>

List of all members.

Public Types

typedef std::map< Key, Data >
::const_iterator::iterator_category 
iterator_category
typedef Data value_type
typedef std::map< Key, Data >
::const_iterator::difference_type 
difference_type
typedef Data * pointer
typedef Data & reference

Public Member Functions

 map_const_iterator (const typename std::map< Key, Data >::const_iterator &i)
 Constructor from a map::const_iterator.
 map_const_iterator (const map_const_iterator< Key, Data > &i)
 Copy constructor.
const Data & operator* ()
 Indirection operator, returns a reference to the referred value.
const Data & operator* () const
 Const indirection operator, returns a constant reference to the referred value.

Detailed Description

template<typename Key, typename Data>
class psynth::base::map_const_iterator< Key, Data >

This class acts as wrapper to a map::const_iterator.

It just changes the opearator* behaviour, which now returns a pointer to the contained value hidding the user the value key. Just a const version of map_iterator to hold constant data.

Todo:
Implement -> operator.

Member Typedef Documentation

template<typename Key, typename Data>
typedef std::map<Key, Data>::const_iterator::difference_type psynth::base::map_const_iterator< Key, Data >::difference_type
template<typename Key, typename Data>
typedef std::map<Key, Data>::const_iterator::iterator_category psynth::base::map_const_iterator< Key, Data >::iterator_category
template<typename Key, typename Data>
typedef Data* psynth::base::map_const_iterator< Key, Data >::pointer
template<typename Key, typename Data>
typedef Data& psynth::base::map_const_iterator< Key, Data >::reference
template<typename Key, typename Data>
typedef Data psynth::base::map_const_iterator< Key, Data >::value_type

Constructor & Destructor Documentation

template<typename Key, typename Data>
psynth::base::map_const_iterator< Key, Data >::map_const_iterator ( const typename std::map< Key, Data >::const_iterator &  i) [inline]

Constructor from a map::const_iterator.

template<typename Key, typename Data>
psynth::base::map_const_iterator< Key, Data >::map_const_iterator ( const map_const_iterator< Key, Data > &  i) [inline]

Copy constructor.


Member Function Documentation

template<typename Key, typename Data>
const Data& psynth::base::map_const_iterator< Key, Data >::operator* ( ) [inline]

Indirection operator, returns a reference to the referred value.

template<typename Key, typename Data>
const Data& psynth::base::map_const_iterator< Key, Data >::operator* ( ) const [inline]

Const indirection operator, returns a constant reference to the referred value.


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