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

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

#include <iterator.hpp>

Inheritance diagram for psynth::base::map_iterator< Key, Data >:
Inheritance graph
[legend]
Collaboration diagram for psynth::base::map_iterator< Key, Data >:
Collaboration graph
[legend]

List of all members.

Public Types

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

Public Member Functions

 map_iterator ()
 Constructor.
 map_iterator (const base_type &i)
 Constructor from a map::iterator.
 map_iterator (const map_iterator &i)
 Copy constructor.
 map_iterator (base_type &&i)
 Constructor from a map::iterator.
 map_iterator (map_iterator &&i)
 Copy constructor.
Data & operator* ()
 Indirection operator, returns a reference to the referred value.
Data * operator-> ()
 Indirection operator, returns a pointer to the referred value.
const Data & operator* () const
 Const indirection operator, returns a constant reference to the referred value.
const Data * operator-> () const
 Indirection operator, returns a pointer to the referred value const value.
map_iterator< Key, Data > operator++ ()
 Preincrement operator.
map_iterator< Key, Data > operator++ (int)
 Postincrement operator.

Detailed Description

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

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

It just changes the opearator* behaviour, which now returns a pointer to the contained value hidding the user the value key.


Member Typedef Documentation

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

Constructor & Destructor Documentation

template<typename Key , typename Data >
psynth::base::map_iterator< Key, Data >::map_iterator ( ) [inline]

Constructor.

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

Constructor from a map::iterator.

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

Copy constructor.

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

Constructor from a map::iterator.

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

Copy constructor.


Member Function Documentation

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

Indirection operator, returns a reference to the referred value.

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

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

template<typename Key , typename Data >
map_iterator<Key, Data> psynth::base::map_iterator< Key, Data >::operator++ ( ) [inline]

Preincrement operator.

template<typename Key , typename Data >
map_iterator<Key, Data> psynth::base::map_iterator< Key, Data >::operator++ ( int  ) [inline]

Postincrement operator.

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

Indirection operator, returns a pointer to the referred value const value.

template<typename Key , typename Data >
Data* psynth::base::map_iterator< Key, Data >::operator-> ( ) [inline]

Indirection operator, returns a pointer to the referred value.


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