Object iterator wrapper that provides key() and value().
More...
#include <nfx/json/Document.h>
Object iterator wrapper that provides key() and value().
Definition at line 716 of file Document.h.
◆ difference_type
iterator difference type
Definition at line 726 of file Document.h.
◆ iterator_category
iterator category (forward iterator)
Definition at line 720 of file Document.h.
◆ MapIterator
Underlying iterator type for Object.
Definition at line 735 of file Document.h.
◆ pointer
◆ reference
iterator reference type
Definition at line 732 of file Document.h.
◆ value_type
◆ ObjectIterator()
| nfx::json::Document::ObjectIterator::ObjectIterator |
( |
MapIterator | iter | ) |
|
|
inline |
Construct from underlying iterator.
- Parameters
-
| iter | The underlying iterator to wrap |
◆ base()
| MapIterator nfx::json::Document::ObjectIterator::base |
( |
| ) |
const |
|
inline |
Get the underlying iterator.
- Returns
- The underlying MapIterator
◆ key()
| const std::string & nfx::json::Document::ObjectIterator::key |
( |
| ) |
const |
|
inline |
Get the key of the current element.
- Returns
- Const reference to the key string
◆ operator!=()
| bool nfx::json::Document::ObjectIterator::operator!= |
( |
const ObjectIterator & | other | ) |
const |
|
inline |
Inequality comparison.
- Parameters
-
| other | The iterator to compare with |
- Returns
- true if iterators are not equal, false otherwise
◆ operator*() [1/2]
| Document & nfx::json::Document::ObjectIterator::operator* |
( |
| ) |
|
|
inline |
Dereference operator (mutable).
- Returns
- Mutable reference to the Document
◆ operator*() [2/2]
| const Document & nfx::json::Document::ObjectIterator::operator* |
( |
| ) |
const |
|
inline |
Dereference operator (const).
- Returns
- Const reference to the Document
◆ operator++()
Pre-increment operator.
- Returns
- Reference to this iterator after increment
◆ operator=() [1/2]
Copy assignment.
- Returns
- Reference to this iterator
◆ operator=() [2/2]
Move assignment.
- Returns
- Reference to this iterator
◆ operator==()
| bool nfx::json::Document::ObjectIterator::operator== |
( |
const ObjectIterator & | other | ) |
const |
|
inline |
Equality comparison.
- Parameters
-
| other | The iterator to compare with |
- Returns
- true if iterators are equal, false otherwise
◆ value() [1/2]
| Document & nfx::json::Document::ObjectIterator::value |
( |
| ) |
|
|
inline |
Get the value of the current element (mutable).
- Returns
- Mutable reference to the Document
◆ value() [2/2]
| const Document & nfx::json::Document::ObjectIterator::value |
( |
| ) |
const |
|
inline |
Get the value of the current element (const).
- Returns
- Const reference to the Document
◆ it
The underlying iterator.
Definition at line 738 of file Document.h.
The documentation for this class was generated from the following file: