flexiblesusy is hosted by Hepforge, IPPP Durham
FlexibleSUSY
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType > Class Template Reference

#include <json.hpp>

Collaboration diagram for nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >:
Collaboration graph

Public Types

using difference_type = std::ptrdiff_t
 
using iterator_category = std::input_iterator_tag
 
using pointer = value_type *
 
using reference = value_type &
 
using string_type = typename std::remove_cv< typename std::remove_reference< decltype(std::declval< IteratorType >().key()) >::type >::type
 
using value_type = iteration_proxy_value
 

Public Member Functions

 iteration_proxy_value ()=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 (iteration_proxy_value const &)=default
 
 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)
 
const string_typekey () const
 return key of the iterator More...
 
bool operator!= (const iteration_proxy_value &o) const
 inequality operator (needed for range-based for) More...
 
const iteration_proxy_valueoperator* () const
 dereference operator (needed for range-based for) More...
 
iteration_proxy_valueoperator++ ()
 increment operator (needed for range-based for) More...
 
iteration_proxy_value operator++ (int) &
 
iteration_proxy_valueoperator= (iteration_proxy_value &&) noexcept(std::is_nothrow_move_assignable< IteratorType >::value &&std::is_nothrow_move_assignable< string_type >::value)=default
 
iteration_proxy_valueoperator= (iteration_proxy_value const &)=default
 
bool operator== (const iteration_proxy_value &o) const
 equality operator (needed for InputIterator) More...
 
IteratorType::reference value () const
 return value of the iterator More...
 
 ~iteration_proxy_value ()=default
 

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...
 

Detailed Description

template<typename IteratorType>
class nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >

Definition at line 5185 of file json.hpp.

Member Typedef Documentation

◆ difference_type

template<typename IteratorType >
using nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >::difference_type = std::ptrdiff_t

Definition at line 5188 of file json.hpp.

◆ iterator_category

template<typename IteratorType >
using nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >::iterator_category = std::input_iterator_tag

Definition at line 5192 of file json.hpp.

◆ pointer

template<typename IteratorType >
using nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >::pointer = value_type *

Definition at line 5190 of file json.hpp.

◆ reference

template<typename IteratorType >
using nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >::reference = value_type &

Definition at line 5191 of file json.hpp.

◆ string_type

template<typename IteratorType >
using nlohmann::json_abi_v3_11_3::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 5193 of file json.hpp.

◆ value_type

template<typename IteratorType >
using nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >::value_type = iteration_proxy_value

Definition at line 5189 of file json.hpp.

Constructor & Destructor Documentation

◆ iteration_proxy_value() [1/4]

template<typename IteratorType >
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >::iteration_proxy_value ( )
explicitdefault

◆ iteration_proxy_value() [2/4]

template<typename IteratorType >
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >::iteration_proxy_value ( IteratorType  it,
std::size_t  array_index_ = 0 
)
inlineexplicitnoexcept

Definition at line 5209 of file json.hpp.

◆ iteration_proxy_value() [3/4]

template<typename IteratorType >
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >::iteration_proxy_value ( iteration_proxy_value< IteratorType > const &  )
default

◆ iteration_proxy_value() [4/4]

template<typename IteratorType >
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >::iteration_proxy_value ( iteration_proxy_value< IteratorType > &&  ) const &&
defaultnoexcept

◆ ~iteration_proxy_value()

template<typename IteratorType >
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >::~iteration_proxy_value ( )
default

Member Function Documentation

◆ key()

template<typename IteratorType >
const string_type & nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >::key ( ) const
inline

return key of the iterator

Definition at line 5263 of file json.hpp.

References nlohmann::json_abi_v3_11_3::detail::int_to_string(), and JSON_ASSERT.

◆ operator!=()

template<typename IteratorType >
bool nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >::operator!= ( const iteration_proxy_value< IteratorType > &  o) const
inline

inequality operator (needed for range-based for)

Definition at line 5257 of file json.hpp.

References nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >::anchor.

◆ operator*()

template<typename IteratorType >
const iteration_proxy_value & nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >::operator* ( ) const
inline

dereference operator (needed for range-based for)

Definition at line 5228 of file json.hpp.

◆ operator++() [1/2]

template<typename IteratorType >
iteration_proxy_value & nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >::operator++ ( )
inline

increment operator (needed for range-based for)

Definition at line 5234 of file json.hpp.

◆ operator++() [2/2]

template<typename IteratorType >
iteration_proxy_value nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >::operator++ ( int  ) &
inline

Definition at line 5242 of file json.hpp.

◆ operator=() [1/2]

template<typename IteratorType >
iteration_proxy_value & nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >::operator= ( iteration_proxy_value< IteratorType > &&  ) &&
defaultnoexcept

◆ operator=() [2/2]

template<typename IteratorType >
iteration_proxy_value & nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >::operator= ( iteration_proxy_value< IteratorType > const &  )
default

◆ operator==()

template<typename IteratorType >
bool nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >::operator== ( const iteration_proxy_value< IteratorType > &  o) const
inline

equality operator (needed for InputIterator)

Definition at line 5251 of file json.hpp.

References nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >::anchor.

◆ value()

template<typename IteratorType >
IteratorType::reference nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >::value ( ) const
inline

return value of the iterator

Definition at line 5299 of file json.hpp.

Member Data Documentation

◆ anchor

◆ array_index

template<typename IteratorType >
std::size_t nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >::array_index = 0
private

an index for arrays (used to create key names)

Definition at line 5199 of file json.hpp.

◆ array_index_last

template<typename IteratorType >
std::size_t nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >::array_index_last = 0
mutableprivate

last stringified array index

Definition at line 5201 of file json.hpp.

◆ array_index_str

template<typename IteratorType >
string_type nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >::array_index_str = "0"
mutableprivate

a string representation of the array index

Definition at line 5203 of file json.hpp.

◆ empty_str

template<typename IteratorType >
string_type nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value< IteratorType >::empty_str {}
private

an empty string (to return a reference for primitive values)

Definition at line 5205 of file json.hpp.


The documentation for this class was generated from the following file: