#include <json.hpp>
Public Types | |
using | difference_type = std::ptrdiff_t |
using | value_type = iteration_proxy_value |
using | pointer = value_type * |
using | reference = value_type & |
using | iterator_category = std::input_iterator_tag |
using | string_type = typename std::remove_cv< typename std::remove_reference< decltype(std::declval< IteratorType >().key()) >::type >::type |
Public Member Functions | |
iteration_proxy_value (IteratorType it) noexcept | |
iteration_proxy_value & | operator* () |
dereference operator (needed for range-based for) More... | |
iteration_proxy_value & | operator++ () |
increment operator (needed for range-based for) More... | |
bool | operator== (const iteration_proxy_value &o) const |
equality operator (needed for InputIterator) More... | |
bool | operator!= (const iteration_proxy_value &o) const |
inequality operator (needed for range-based for) More... | |
const string_type & | key () const |
return key of the iterator More... | |
IteratorType::reference | value () const |
return value of the iterator More... | |
Private Attributes | |
IteratorType | anchor |
the iterator More... | |
std::size_t | array_index = 0 |
an index for arrays (used to create key names) More... | |
std::size_t | array_index_last = 0 |
last stringified array index More... | |
string_type | array_index_str = "0" |
a string representation of the array index More... | |
const string_type | empty_str = "" |
an empty string (to return a reference for primitive values) More... | |
using nlohmann::detail::iteration_proxy_value< IteratorType >::difference_type = std::ptrdiff_t |
using nlohmann::detail::iteration_proxy_value< IteratorType >::iterator_category = std::input_iterator_tag |
using nlohmann::detail::iteration_proxy_value< IteratorType >::pointer = value_type * |
using nlohmann::detail::iteration_proxy_value< IteratorType >::reference = value_type & |
using nlohmann::detail::iteration_proxy_value< IteratorType >::string_type = typename std::remove_cv< typename std::remove_reference<decltype( std::declval<IteratorType>().key() ) >::type >::type |
using nlohmann::detail::iteration_proxy_value< IteratorType >::value_type = iteration_proxy_value |
|
inlineexplicitnoexcept |
Definition at line 3320 of file json.hpp.
|
inline |
return key of the iterator
Definition at line 3350 of file json.hpp.
|
inline |
inequality operator (needed for range-based for)
Definition at line 3344 of file json.hpp.
|
inline |
|
inline |
increment operator (needed for range-based for)
Definition at line 3329 of file json.hpp.
|
inline |
equality operator (needed for InputIterator)
Definition at line 3338 of file json.hpp.
|
inline |
return value of the iterator
Definition at line 3378 of file json.hpp.
|
private |
|
private |
|
mutableprivate |
|
mutableprivate |
|
private |