Iterator for formats::yaml::Value
More...
#include <userver/formats/yaml/iterator.hpp>
Public Types | |
| using | iterator_category = std::forward_iterator_tag |
| using | difference_type = std::ptrdiff_t |
| using | value_type = typename iter_traits::value_type |
| using | reference = typename iter_traits::reference |
| using | pointer = typename iter_traits::pointer |
Public Member Functions | |
| Iterator (const typename iter_traits::native_iter &iter, int index, const formats::yaml::Path &path) | |
| 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 |
| std::string | GetName () const |
| Returns name of the referenced field. | |
| uint32_t | GetIndex () const |
| Returns index of the referenced field. | |
| Type | GetIteratorType () const |
| Returns whether iterator is over array or over object. | |
Iterator for formats::yaml::Value
Definition at line 19 of file iterator.hpp.
| using formats::yaml::Iterator< iter_traits >::difference_type = std::ptrdiff_t |
Definition at line 22 of file iterator.hpp.
| using formats::yaml::Iterator< iter_traits >::iterator_category = std::forward_iterator_tag |
Definition at line 21 of file iterator.hpp.
| using formats::yaml::Iterator< iter_traits >::pointer = typename iter_traits::pointer |
Definition at line 25 of file iterator.hpp.
| using formats::yaml::Iterator< iter_traits >::reference = typename iter_traits::reference |
Definition at line 24 of file iterator.hpp.
| using formats::yaml::Iterator< iter_traits >::value_type = typename iter_traits::value_type |
Definition at line 23 of file iterator.hpp.
| uint32_t formats::yaml::Iterator< iter_traits >::GetIndex | ( | ) | const |
Returns index of the referenced field.
| `TypeMismatchException` | if iterated value is not an array |
| std::string formats::yaml::Iterator< iter_traits >::GetName | ( | ) | const |
Returns name of the referenced field.
| `TypeMismatchException` | if iterated value is not an object |