CMS 3D CMS Logo

lat::MapKeyIterator< M > Class Template Reference

An iterator adaptor to extract the value part from the (key, value) pairs returned by the std::map iterators. More...

#include <Iguana/Utilities/classlib/utils/MapIterator.h>

List of all members.

Public Types

typedef M::const_iterator base_iterator
typedef M::difference_type difference_type
typedef
std::bidirectional_iterator_tag 
iterator_category
typedef const value_typepointer
typedef const value_typereference
typedef M::key_type value_type

Public Member Functions

 MapKeyIterator (base_iterator i)
 MapKeyIterator (void)
reference operator * (void) const
bool operator!= (const MapKeyIterator &x) const
MapKeyIterator operator++ (int)
MapKeyIteratoroperator++ (void)
MapKeyIterator operator-- (int)
MapKeyIteratoroperator-- (void)
pointer operator-> (void) const
bool operator== (const MapKeyIterator &x) const

Private Attributes

base_iterator m_iterator


Detailed Description

template<class M>
class lat::MapKeyIterator< M >

An iterator adaptor to extract the value part from the (key, value) pairs returned by the std::map iterators.

Definition at line 54 of file MapIterator.h.


Member Typedef Documentation

template<class M>
typedef M::const_iterator lat::MapKeyIterator< M >::base_iterator

Definition at line 60 of file MapIterator.h.

template<class M>
typedef M::difference_type lat::MapKeyIterator< M >::difference_type

Definition at line 62 of file MapIterator.h.

template<class M>
typedef std::bidirectional_iterator_tag lat::MapKeyIterator< M >::iterator_category

Definition at line 59 of file MapIterator.h.

template<class M>
typedef const value_type* lat::MapKeyIterator< M >::pointer

Definition at line 64 of file MapIterator.h.

template<class M>
typedef const value_type& lat::MapKeyIterator< M >::reference

Definition at line 63 of file MapIterator.h.

template<class M>
typedef M::key_type lat::MapKeyIterator< M >::value_type

Definition at line 61 of file MapIterator.h.


Constructor & Destructor Documentation

template<class M>
lat::MapKeyIterator< M >::MapKeyIterator ( void   )  [inline]

Definition at line 135 of file MapIterator.h.

Referenced by lat::MapKeyIterator< M >::operator++(), and lat::MapKeyIterator< M >::operator--().

00136 {}

template<class M>
lat::MapKeyIterator< M >::MapKeyIterator ( base_iterator  i  )  [inline]

Definition at line 139 of file MapIterator.h.

00140     : m_iterator (i)
00141 {}


Member Function Documentation

template<class M>
MapKeyIterator< M >::reference lat::MapKeyIterator< M >::operator * ( void   )  const [inline]

Definition at line 152 of file MapIterator.h.

References lat::MapKeyIterator< M >::m_iterator.

00153 { return m_iterator->first; }

template<class M>
bool lat::MapKeyIterator< M >::operator!= ( const MapKeyIterator< M > &  x  )  const [inline]

Definition at line 148 of file MapIterator.h.

References lat::MapKeyIterator< M >::m_iterator.

00149 { return m_iterator != x.m_iterator; }

template<class M>
MapKeyIterator< M > lat::MapKeyIterator< M >::operator++ ( int   )  [inline]

Definition at line 164 of file MapIterator.h.

References lat::MapKeyIterator< M >::m_iterator, and lat::MapKeyIterator< M >::MapKeyIterator().

00165 { return MapKeyIterator (m_iterator++); }

template<class M>
MapKeyIterator< M > & lat::MapKeyIterator< M >::operator++ ( void   )  [inline]

Definition at line 160 of file MapIterator.h.

References lat::MapKeyIterator< M >::m_iterator.

00161 { ++m_iterator; return *this; }

template<class M>
MapKeyIterator< M > lat::MapKeyIterator< M >::operator-- ( int   )  [inline]

Definition at line 172 of file MapIterator.h.

References lat::MapKeyIterator< M >::m_iterator, and lat::MapKeyIterator< M >::MapKeyIterator().

00173 { return MapKeyIterator (m_iterator--); }

template<class M>
MapKeyIterator< M > & lat::MapKeyIterator< M >::operator-- ( void   )  [inline]

Definition at line 168 of file MapIterator.h.

References lat::MapKeyIterator< M >::m_iterator.

00169 { --m_iterator; return *this; }

template<class M>
MapKeyIterator< M >::pointer lat::MapKeyIterator< M >::operator-> ( void   )  const [inline]

Definition at line 156 of file MapIterator.h.

References lat::MapKeyIterator< M >::m_iterator.

00157 { return &m_iterator->first; }

template<class M>
bool lat::MapKeyIterator< M >::operator== ( const MapKeyIterator< M > &  x  )  const [inline]

Definition at line 144 of file MapIterator.h.

References lat::MapKeyIterator< M >::m_iterator.

00145 { return m_iterator == x.m_iterator; }


Member Data Documentation

template<class M>
base_iterator lat::MapKeyIterator< M >::m_iterator [private]

Definition at line 84 of file MapIterator.h.

Referenced by lat::MapKeyIterator< M >::operator *(), lat::MapKeyIterator< M >::operator!=(), lat::MapKeyIterator< M >::operator++(), lat::MapKeyIterator< M >::operator--(), lat::MapKeyIterator< M >::operator->(), and lat::MapKeyIterator< M >::operator==().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:48:27 2009 for CMSSW by  doxygen 1.5.4