|
nfx-json 1.5.2
Modern C++20 JSON library with schema validation and generation
|
Key iterator. More...
#include <nfx/json/Document.h>
Public Types | |
| using | iterator_category = std::forward_iterator_tag |
| iterator category (forward iterator) | |
| using | value_type = std::string |
| iterator value type | |
| using | difference_type = std::ptrdiff_t |
| iterator difference type | |
| using | pointer = const std::string* |
| iterator pointer type | |
| using | reference = const std::string& |
| iterator reference type | |
Public Member Functions | |
| iterator (Object::const_iterator it) | |
| Construct iterator from underlying Object iterator. | |
| iterator (const iterator &)=default | |
| Copy constructor. | |
| iterator (iterator &&) noexcept=default | |
| Move constructor. | |
| iterator & | operator= (const iterator &)=default |
| Copy assignment. | |
| iterator & | operator= (iterator &&) noexcept=default |
| Move assignment. | |
| reference | operator* () const |
| Dereference operator. | |
| pointer | operator-> () const |
| Arrow operator. | |
| iterator & | operator++ () |
| Pre-increment operator. | |
| iterator | operator++ (int) |
| Post-increment operator. | |
| bool | operator== (const iterator &other) const |
| Equality comparison. | |
| bool | operator!= (const iterator &other) const |
| Inequality comparison. | |
Key iterator.
Definition at line 844 of file Document.h.
| using nfx::json::Document::KeysView::iterator::difference_type = std::ptrdiff_t |
iterator difference type
Definition at line 856 of file Document.h.
| using nfx::json::Document::KeysView::iterator::iterator_category = std::forward_iterator_tag |
iterator category (forward iterator)
Definition at line 850 of file Document.h.
| using nfx::json::Document::KeysView::iterator::pointer = const std::string* |
iterator pointer type
Definition at line 859 of file Document.h.
| using nfx::json::Document::KeysView::iterator::reference = const std::string& |
iterator reference type
Definition at line 862 of file Document.h.
| using nfx::json::Document::KeysView::iterator::value_type = std::string |
iterator value type
Definition at line 853 of file Document.h.
|
inline |
Construct iterator from underlying Object iterator.
| it | The underlying Object const_iterator |
|
inline |
Inequality comparison.
| other | The iterator to compare with |
|
inline |
Dereference operator.
|
inline |
Pre-increment operator.
|
inline |
Post-increment operator.
|
inline |
Arrow operator.
Copy assignment.
Move assignment.
|
inline |
Equality comparison.
| other | The iterator to compare with |