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 77 of file configuration_file.hpp.
| 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.
Definition at line 86 of file configuration_file.hpp.
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.
| claw::configuration_file::const_field_iterator::const_field_iterator | ( | ) | [inline] |
Definition at line 92 of file configuration_file.hpp.
{}
| claw::configuration_file::const_field_iterator::const_field_iterator | ( | wrapped_iterator_type | it | ) | [inline] |
Definition at line 93 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 100 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 131 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 111 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 105 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 118 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 124 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 136 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 95 of file configuration_file.hpp.
References m_iterator.
{
return m_iterator == that.m_iterator;
} // operator==()
Iterator on a section content.
Definition at line 143 of file configuration_file.hpp.
Referenced by operator!=(), operator*(), operator++(), operator--(), operator->(), and operator==().
1.7.1