Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

pair_adaptor< _Iterator > Class Template Reference
[Classes and types for internal use]

adaptor for an iterator over a pair to an iterator returning the second element More...

#include <vgtl_intadapt.h>

Collaboration diagram for pair_adaptor< _Iterator >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::iterator_traits<
_Iterator >::iterator_category 
iterator_category
 standard iterator definitions

typedef std::iterator_traits<
_Iterator >::difference_type 
difference_type
 standard iterator definitions

typedef std::iterator_traits<
_Iterator >::value_type 
p_value_type
 standard iterator definitions

typedef std::iterator_traits<
_Iterator >::pointer 
p_pointer
 standard iterator definitions

typedef std::iterator_traits<
_Iterator >::reference 
p_reference
 standard iterator definitions

typedef p_value_type::second_type value_type
 standard iterator definitions

typedef value_typereference
 standard iterator definitions

typedef value_typepointer
 standard iterator definitions

typedef p_value_type::first_type key_type
 additional definitions for the key type

typedef key_typekey_reference
 additional definitions for the key type

typedef key_typekey_pointer
 additional definitions for the key type


Public Methods

 pair_adaptor ()
 standard constructor

 pair_adaptor (iterator_type __x)
 constructor setting the position

 pair_adaptor (const _Self &__x)
 copy constructor

template<class _Iter>  pair_adaptor (const pair_adaptor< _Iter > &__x)
 a copy constructor setting the position from another pair adaptor

iterator_type base () const
 return the base iterator

reference operator * () const
 dereference operator

pointer operator-> () const
 pointer operator

key_reference operator~ () const
 dereference to the key value

_Self & operator= (const iterator_type &__x)
 assignment operator setting the position from base iterator

_Self & operator++ ()
 standard increment, decrement operators

_Self operator++ (int)
 standard increment, decrement operators

_Self & operator-- ()
 standard increment, decrement operators

_Self operator-- (int)
 standard increment, decrement operators

_Self operator+ (difference_type __n) const
 standard random access operators

_Self & operator+= (difference_type __n)
 standard random access operators

_Self operator- (difference_type __n) const
 standard random access operators

_Self & operator-= (difference_type __n)
 standard random access operators

reference operator[] (difference_type __n) const
 standard random access operators

bool operator== (const iterator_type &__x)
 standard comparison operator

bool operator!= (const iterator_type &__x)
 standard comparison operator


Protected Attributes

_Iterator current
 the original iterator


Detailed Description

template<class _Iterator>
class pair_adaptor< _Iterator >

This adaptor transforms an iterator returning a pair (e.g. a map or multimap iterator) to an iterator returning only the value part. There is another operator (~), which returns the key value for a given position.

Definition at line 77 of file vgtl_intadapt.h.


The documentation for this class was generated from the following file:
Generated on Tue Nov 4 01:41:48 2003 for Vienna Graph Template Library by doxygen1.2.18