|
ledger-core
|
a mutable random access iterator for the basic_json class More...
#include <json.hpp>
Inheritance diagram for nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::iterator:
Collaboration diagram for nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::iterator:Public Types | |
| using | base_iterator = const_iterator |
| using | pointer = typename basic_json::pointer |
| using | reference = typename basic_json::reference |
Public Types inherited from nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::const_iterator | |
| using | value_type = typename basic_json::value_type |
| the type of the values when the iterator is dereferenced | |
| using | difference_type = typename basic_json::difference_type |
| a type to represent differences between iterators | |
| using | pointer = typename basic_json::const_pointer |
| defines a pointer to the type iterated over (value_type) | |
| using | reference = typename basic_json::const_reference |
| defines a reference to the type iterated over (value_type) | |
| using | iterator_category = std::bidirectional_iterator_tag |
| the category of the iterator | |
Public Member Functions | |
| iterator ()=default | |
| default constructor | |
| iterator (pointer object) noexcept | |
| constructor for a given JSON instance | |
| iterator (const iterator &other) noexcept | |
| copy constructor | |
| iterator & | operator= (iterator other) noexcept(std::is_nothrow_move_constructible< pointer >::value and std::is_nothrow_move_assignable< pointer >::value and std::is_nothrow_move_constructible< internal_iterator >::value and std::is_nothrow_move_assignable< internal_iterator >::value) |
| copy assignment | |
| reference | operator* () const |
| return a reference to the value pointed to by the iterator | |
| pointer | operator-> () const |
| dereference the iterator | |
| iterator | operator++ (int) |
| post-increment (it++) | |
| iterator & | operator++ () |
| pre-increment (++it) | |
| iterator | operator-- (int) |
| post-decrement (it–) | |
| iterator & | operator-- () |
| pre-decrement (–it) | |
| iterator & | operator+= (difference_type i) |
| add to iterator | |
| iterator & | operator-= (difference_type i) |
| subtract from iterator | |
| iterator | operator+ (difference_type i) |
| add to iterator | |
| iterator | operator- (difference_type i) |
| subtract from iterator | |
| difference_type | operator- (const iterator &other) const |
| return difference | |
| reference | operator[] (difference_type n) const |
| access to successor | |
| reference | value () const |
| return the value of an iterator | |
Public Member Functions inherited from nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::const_iterator | |
| const_iterator ()=default | |
| default constructor | |
| const_iterator (pointer object) noexcept | |
| constructor for a given JSON instance More... | |
| const_iterator (const iterator &other) noexcept | |
| copy constructor given a non-const iterator More... | |
| const_iterator (const const_iterator &other) noexcept | |
| copy constructor More... | |
| const_iterator & | operator= (const_iterator other) noexcept(std::is_nothrow_move_constructible< pointer >::value and std::is_nothrow_move_assignable< pointer >::value and std::is_nothrow_move_constructible< internal_iterator >::value and std::is_nothrow_move_assignable< internal_iterator >::value) |
| copy assignment More... | |
| reference | operator* () const |
| return a reference to the value pointed to by the iterator More... | |
| pointer | operator-> () const |
| dereference the iterator More... | |
| const_iterator | operator++ (int) |
| post-increment (it++) More... | |
| const_iterator & | operator++ () |
| pre-increment (++it) More... | |
| const_iterator | operator-- (int) |
| post-decrement (it–) More... | |
| const_iterator & | operator-- () |
| pre-decrement (–it) More... | |
| bool | operator== (const const_iterator &other) const |
| comparison: equal More... | |
| bool | operator!= (const const_iterator &other) const |
| comparison: not equal More... | |
| bool | operator< (const const_iterator &other) const |
| comparison: smaller More... | |
| bool | operator<= (const const_iterator &other) const |
| comparison: less than or equal More... | |
| bool | operator> (const const_iterator &other) const |
| comparison: greater than More... | |
| bool | operator>= (const const_iterator &other) const |
| comparison: greater than or equal More... | |
| const_iterator & | operator+= (difference_type i) |
| add to iterator More... | |
| const_iterator & | operator-= (difference_type i) |
| subtract from iterator More... | |
| const_iterator | operator+ (difference_type i) |
| add to iterator More... | |
| const_iterator | operator- (difference_type i) |
| subtract from iterator More... | |
| difference_type | operator- (const const_iterator &other) const |
| return difference More... | |
| reference | operator[] (difference_type n) const |
| access to successor More... | |
| object_t::key_type | key () const |
| return the key of an object iterator More... | |
| reference | value () const |
| return the value of an iterator More... | |
a mutable random access iterator for the basic_json class
The class satisfies the following concept requirements:
1.8.13