SIRIUS 7.5.0
Electronic structure library and applications
|
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, std::size_t array_index_=0) noexcept(std::is_nothrow_move_constructible< IteratorType >::value &&std::is_nothrow_default_constructible< string_type >::value) | |
iteration_proxy_value (iteration_proxy_value const &)=default | |
iteration_proxy_value & | operator= (iteration_proxy_value const &)=default |
iteration_proxy_value (iteration_proxy_value &&) noexcept(std::is_nothrow_move_constructible< IteratorType >::value &&std::is_nothrow_move_constructible< string_type >::value)=default | |
iteration_proxy_value & | operator= (iteration_proxy_value &&) noexcept(std::is_nothrow_move_assignable< IteratorType >::value &&std::is_nothrow_move_assignable< string_type >::value)=default |
const iteration_proxy_value & | operator* () const |
dereference operator (needed for range-based for) More... | |
iteration_proxy_value & | operator++ () |
increment operator (needed for range-based for) More... | |
iteration_proxy_value | operator++ (int) & |
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... | |
string_type | empty_str {} |
an empty string (to return a reference for primitive values) More... | |
Definition at line 5118 of file nlohmann_json.hpp.
using detail::iteration_proxy_value< IteratorType >::difference_type = std::ptrdiff_t |
Definition at line 5121 of file nlohmann_json.hpp.
using detail::iteration_proxy_value< IteratorType >::value_type = iteration_proxy_value |
Definition at line 5122 of file nlohmann_json.hpp.
using detail::iteration_proxy_value< IteratorType >::pointer = value_type * |
Definition at line 5123 of file nlohmann_json.hpp.
using detail::iteration_proxy_value< IteratorType >::reference = value_type & |
Definition at line 5124 of file nlohmann_json.hpp.
using detail::iteration_proxy_value< IteratorType >::iterator_category = std::input_iterator_tag |
Definition at line 5125 of file nlohmann_json.hpp.
using detail::iteration_proxy_value< IteratorType >::string_type = typename std::remove_cv< typename std::remove_reference<decltype( std::declval<IteratorType>().key() ) >::type >::type |
Definition at line 5126 of file nlohmann_json.hpp.
|
inlineexplicitnoexcept |
Definition at line 5142 of file nlohmann_json.hpp.
|
inline |
dereference operator (needed for range-based for)
Definition at line 5161 of file nlohmann_json.hpp.
|
inline |
increment operator (needed for range-based for)
Definition at line 5167 of file nlohmann_json.hpp.
|
inline |
Definition at line 5175 of file nlohmann_json.hpp.
|
inline |
equality operator (needed for InputIterator)
Definition at line 5184 of file nlohmann_json.hpp.
|
inline |
inequality operator (needed for range-based for)
Definition at line 5190 of file nlohmann_json.hpp.
|
inline |
return key of the iterator
Definition at line 5196 of file nlohmann_json.hpp.
|
inline |
return value of the iterator
Definition at line 5232 of file nlohmann_json.hpp.
|
private |
the iterator
Definition at line 5130 of file nlohmann_json.hpp.
|
private |
an index for arrays (used to create key names)
Definition at line 5132 of file nlohmann_json.hpp.
|
mutableprivate |
last stringified array index
Definition at line 5134 of file nlohmann_json.hpp.
|
mutableprivate |
a string representation of the array index
Definition at line 5136 of file nlohmann_json.hpp.
|
private |
an empty string (to return a reference for primitive values)
Definition at line 5138 of file nlohmann_json.hpp.