|
libpsynth 0.2.1
|
This class acts as wrapper to a map::const_iterator.
More...
#include <iterator.hpp>
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. | |
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.
| typedef std::map<Key, Data>::const_iterator::difference_type psynth::base::map_const_iterator< Key, Data >::difference_type |
| typedef std::map<Key, Data>::const_iterator::iterator_category psynth::base::map_const_iterator< Key, Data >::iterator_category |
| typedef Data* psynth::base::map_const_iterator< Key, Data >::pointer |
| typedef Data& psynth::base::map_const_iterator< Key, Data >::reference |
| typedef Data psynth::base::map_const_iterator< Key, Data >::value_type |
| 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.
| psynth::base::map_const_iterator< Key, Data >::map_const_iterator | ( | const map_const_iterator< Key, Data > & | i | ) | [inline] |
Copy constructor.
| const Data& psynth::base::map_const_iterator< Key, Data >::operator* | ( | ) | [inline] |
Indirection operator, returns a reference to the referred value.
| const Data& psynth::base::map_const_iterator< Key, Data >::operator* | ( | ) | const [inline] |
Const indirection operator, returns a constant reference to the referred value.
1.7.4