#include <userver/formats/json/iterator.hpp>
template<typename Traits,
common::IteratorDirection Direction = common::IteratorDirection::kForward>
class formats::json::Iterator< Traits, Direction >
Iterator for formats::json::Value
Definition at line 18 of file iterator.hpp.
|
| Iterator (ContainerType container, int pos) |
|
| Iterator (const Iterator &other) |
|
| Iterator (Iterator &&other) noexcept |
|
Iterator & | operator= (const Iterator &other) |
|
Iterator & | operator= (Iterator &&other) noexcept |
|
Iterator | operator++ (int) |
|
Iterator & | operator++ () |
|
reference | operator* () const |
|
pointer | operator-> () const |
|
bool | operator== (const Iterator &other) const |
|
bool | operator!= (const Iterator &other) const |
|
template<typename T = void> |
std::string | GetName () const |
| Returns name of the referenced field.
|
|
size_t | GetIndex () const |
| Returns index of the referenced field.
|
|
◆ ContainerType
◆ difference_type
◆ iterator_category
◆ pointer
◆ reference
◆ value_type
◆ GetIndex()
Returns index of the referenced field.
- Exceptions
-
`TypeMismatchException` | if iterated value is not an array |
◆ GetName()
template<typename T = void>
Returns name of the referenced field.
- Exceptions
-
`TypeMismatchException` | if iterated value is not an object |
Definition at line 48 of file iterator.hpp.
The documentation for this class was generated from the following file: