claw::configuration_file::const_field_iterator Class Reference

#include <configuration_file.hpp>

List of all members.


Detailed Description

This class is an iterator on the values set for a same field name.

Definition at line 77 of file configuration_file.hpp.

Public Types

typedef std::string value_type
typedef const value_typereference
typedef const value_typepointer
typedef wrapped_iterator_type::difference_type difference_type
typedef wrapped_iterator_type::iterator_category iterator_category

Public Member Functions

 const_field_iterator ()
 const_field_iterator (wrapped_iterator_type it)
bool operator== (const const_field_iterator &that) const
bool operator!= (const const_field_iterator &that) const
const_field_iteratoroperator++ ()
const_field_iterator operator++ (int)
const_field_iteratoroperator-- ()
const_field_iterator operator-- (int)
reference operator * () const
pointer operator-> () const

Private Types

typedef section_content::const_iterator wrapped_iterator_type
 Iterator on the fields.

Private Attributes

wrapped_iterator_type m_iterator
 Iterator on a section content.


Member Typedef Documentation

typedef wrapped_iterator_type::difference_type claw::configuration_file::const_field_iterator::difference_type

Definition at line 87 of file configuration_file.hpp.

typedef wrapped_iterator_type::iterator_category claw::configuration_file::const_field_iterator::iterator_category

Definition at line 89 of file configuration_file.hpp.

typedef const value_type* claw::configuration_file::const_field_iterator::pointer

Definition at line 86 of file configuration_file.hpp.

typedef const value_type& claw::configuration_file::const_field_iterator::reference

Definition at line 85 of file configuration_file.hpp.

typedef std::string claw::configuration_file::const_field_iterator::value_type

Definition at line 84 of file configuration_file.hpp.

typedef section_content::const_iterator claw::configuration_file::const_field_iterator::wrapped_iterator_type [private]

Iterator on the fields.

Definition at line 81 of file configuration_file.hpp.


Constructor & Destructor Documentation

claw::configuration_file::const_field_iterator::const_field_iterator (  )  [inline]

Definition at line 92 of file configuration_file.hpp.

00092 {}

claw::configuration_file::const_field_iterator::const_field_iterator ( wrapped_iterator_type  it  )  [inline]

Definition at line 93 of file configuration_file.hpp.

00093 : m_iterator(it) {}


Member Function Documentation

reference claw::configuration_file::const_field_iterator::operator * (  )  const [inline]

Definition at line 131 of file configuration_file.hpp.

References m_iterator.

00132       {
00133   return m_iterator->second;
00134       } // operator*()

bool claw::configuration_file::const_field_iterator::operator!= ( const const_field_iterator that  )  const [inline]

Definition at line 100 of file configuration_file.hpp.

References m_iterator.

00101       {
00102   return m_iterator != that.m_iterator;
00103       } // operator!=()

const_field_iterator claw::configuration_file::const_field_iterator::operator++ ( int   )  [inline]

Definition at line 111 of file configuration_file.hpp.

References m_iterator.

00112       {
00113   const_field_iterator tmp(*this);
00114   ++m_iterator;
00115   return tmp;
00116       } // operator++() [post]

const_field_iterator& claw::configuration_file::const_field_iterator::operator++ (  )  [inline]

Definition at line 105 of file configuration_file.hpp.

References m_iterator.

00106       {
00107   ++m_iterator;
00108   return *this;
00109       } // operator++()

const_field_iterator claw::configuration_file::const_field_iterator::operator-- ( int   )  [inline]

Definition at line 124 of file configuration_file.hpp.

References m_iterator.

00125       {
00126   const_field_iterator tmp(*this);
00127   --m_iterator;
00128   return tmp;
00129       } // operator--() [post]

const_field_iterator& claw::configuration_file::const_field_iterator::operator-- (  )  [inline]

Definition at line 118 of file configuration_file.hpp.

References m_iterator.

00119       {
00120   --m_iterator;
00121   return *this;
00122       } // operator--()

pointer claw::configuration_file::const_field_iterator::operator-> (  )  const [inline]

Definition at line 136 of file configuration_file.hpp.

References m_iterator.

00137       {
00138   return &m_iterator->second;
00139       } // operator->()

bool claw::configuration_file::const_field_iterator::operator== ( const const_field_iterator that  )  const [inline]

Definition at line 95 of file configuration_file.hpp.

References m_iterator.

00096       {
00097   return m_iterator == that.m_iterator;
00098       } // operator==()


Member Data Documentation

wrapped_iterator_type claw::configuration_file::const_field_iterator::m_iterator [private]

Iterator on a section content.

Definition at line 143 of file configuration_file.hpp.

Referenced by operator *(), operator!=(), operator++(), operator--(), operator->(), and operator==().


The documentation for this class was generated from the following file:
Generated on Mon Nov 9 05:07:34 2009 for CLAW Library (a C++ Library Absolutely Wonderful) by  doxygen 1.4.7