a mutable random access iterator for the basic_json class More...
#include <json.hpp>
Public Member Functions | |
iterator () | |
default constructor | |
iterator (pointer object) noexcept | |
constructor for a given JSON instance | |
iterator (const iterator &other) noexcept | |
copy constructor | |
reference | operator* () const |
return a reference to the value pointed to by the iterator | |
iterator | operator+ (difference_type i) |
add to iterator | |
iterator | operator++ (int) |
post-increment (it++) | |
iterator & | operator++ () |
pre-increment (++it) | |
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 | |
iterator | operator-- (int) |
post-decrement (it--) | |
iterator & | operator-- () |
pre-decrement (--it) | |
iterator & | operator-= (difference_type i) |
subtract from iterator | |
pointer | operator-> () const |
dereference the iterator | |
iterator & | operator= (iterator other) noexcept(std |
copy assignment | |
reference | operator[] (difference_type n) const |
access to successor | |
reference | value () const |
return the value of an iterator |
a mutable random access iterator for the basic_json class
The class satisfies the following concept requirements:
nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::iterator::iterator | ( | ) |
default constructor
nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::iterator::iterator | ( | pointer | object | ) | [inline, explicit] |
nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::iterator::iterator | ( | const iterator & | other | ) | [inline] |
reference nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::iterator::operator* | ( | ) | const [inline] |
return a reference to the value pointed to by the iterator
Reimplemented from nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::const_iterator.
iterator nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::iterator::operator+ | ( | difference_type | i | ) | [inline] |
iterator nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::iterator::operator++ | ( | int | ) | [inline] |
post-increment (it++)
Reimplemented from nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::const_iterator.
iterator& nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::iterator::operator++ | ( | ) | [inline] |
pre-increment (++it)
Reimplemented from nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::const_iterator.
iterator& nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::iterator::operator+= | ( | difference_type | i | ) | [inline] |
iterator nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::iterator::operator- | ( | difference_type | i | ) | [inline] |
subtract from iterator
Reimplemented from nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::const_iterator.
difference_type nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::iterator::operator- | ( | const iterator & | other | ) | const [inline] |
iterator nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::iterator::operator-- | ( | int | ) | [inline] |
post-decrement (it--)
Reimplemented from nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::const_iterator.
iterator& nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::iterator::operator-- | ( | ) | [inline] |
pre-decrement (--it)
Reimplemented from nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::const_iterator.
iterator& nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::iterator::operator-= | ( | difference_type | i | ) | [inline] |
subtract from iterator
Reimplemented from nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::const_iterator.
pointer nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::iterator::operator-> | ( | ) | const [inline] |
dereference the iterator
Reimplemented from nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::const_iterator.
iterator& nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::iterator::operator= | ( | iterator | other | ) | [inline] |
reference nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::iterator::operator[] | ( | difference_type | n | ) | const [inline] |
access to successor
Reimplemented from nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::const_iterator.
reference nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::iterator::value | ( | ) | const [inline] |
return the value of an iterator
Reimplemented from nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >::const_iterator.