CLAW Library (a C++ Library Absolutely Wonderful) 1.5.5
|
This class is an iterator on the values set for a same field name. More...
#include <configuration_file.hpp>
Public Types | |
typedef std::string | value_type |
typedef const value_type & | reference |
typedef const value_type * | pointer |
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_iterator & | operator++ () |
const_field_iterator | operator++ (int) |
const_field_iterator & | operator-- () |
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. |
This class is an iterator on the values set for a same field name.
Definition at line 100 of file configuration_file.hpp.
typedef wrapped_iterator_type::difference_type claw::configuration_file::const_field_iterator::difference_type |
Definition at line 110 of file configuration_file.hpp.
typedef wrapped_iterator_type::iterator_category claw::configuration_file::const_field_iterator::iterator_category |
Definition at line 112 of file configuration_file.hpp.
Definition at line 109 of file configuration_file.hpp.
Definition at line 108 of file configuration_file.hpp.
typedef std::string claw::configuration_file::const_field_iterator::value_type |
Definition at line 107 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 104 of file configuration_file.hpp.
claw::configuration_file::const_field_iterator::const_field_iterator | ( | ) | [inline] |
Definition at line 115 of file configuration_file.hpp.
{}
claw::configuration_file::const_field_iterator::const_field_iterator | ( | wrapped_iterator_type | it | ) | [inline] |
Definition at line 116 of file configuration_file.hpp.
: m_iterator(it) {}
bool claw::configuration_file::const_field_iterator::operator!= | ( | const const_field_iterator & | that | ) | const [inline] |
Definition at line 123 of file configuration_file.hpp.
References m_iterator.
{ return m_iterator != that.m_iterator; } // operator!=()
reference claw::configuration_file::const_field_iterator::operator* | ( | ) | const [inline] |
Definition at line 154 of file configuration_file.hpp.
References m_iterator.
{ return m_iterator->second; } // operator*()
const_field_iterator claw::configuration_file::const_field_iterator::operator++ | ( | int | ) | [inline] |
Definition at line 134 of file configuration_file.hpp.
References m_iterator.
{ const_field_iterator tmp(*this); ++m_iterator; return tmp; } // operator++() [post]
const_field_iterator& claw::configuration_file::const_field_iterator::operator++ | ( | ) | [inline] |
Definition at line 128 of file configuration_file.hpp.
References m_iterator.
{ ++m_iterator; return *this; } // operator++()
const_field_iterator& claw::configuration_file::const_field_iterator::operator-- | ( | ) | [inline] |
Definition at line 141 of file configuration_file.hpp.
References m_iterator.
{ --m_iterator; return *this; } // operator--()
const_field_iterator claw::configuration_file::const_field_iterator::operator-- | ( | int | ) | [inline] |
Definition at line 147 of file configuration_file.hpp.
References m_iterator.
{ const_field_iterator tmp(*this); --m_iterator; return tmp; } // operator--() [post]
pointer claw::configuration_file::const_field_iterator::operator-> | ( | ) | const [inline] |
Definition at line 159 of file configuration_file.hpp.
References m_iterator.
{ return &m_iterator->second; } // operator->()
bool claw::configuration_file::const_field_iterator::operator== | ( | const const_field_iterator & | that | ) | const [inline] |
Definition at line 118 of file configuration_file.hpp.
References m_iterator.
{ return m_iterator == that.m_iterator; } // operator==()
Iterator on a section content.
Definition at line 166 of file configuration_file.hpp.
Referenced by operator!=(), operator*(), operator++(), operator--(), operator->(), and operator==().