Instrument Neutral Distributed Interface INDI  2.0.2
Public Types | Public Member Functions | List of all members
nlohmann::detail::iteration_proxy_value< IteratorType > Class Template Reference

#include <json.h>

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 ()=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)
 
 iteration_proxy_value (iteration_proxy_value const &)=default
 
iteration_proxy_valueoperator= (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_valueoperator= (iteration_proxy_value &&) noexcept(std::is_nothrow_move_assignable< IteratorType >::value &&std::is_nothrow_move_assignable< string_type >::value)=default
 
 ~iteration_proxy_value ()=default
 
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) &
 
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_typekey () const
 return key of the iterator More...
 
IteratorType::reference value () const
 return value of the iterator More...
 

Detailed Description

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

Definition at line 4796 of file json.h.

Member Typedef Documentation

◆ difference_type

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

Definition at line 4799 of file json.h.

◆ iterator_category

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

Definition at line 4803 of file json.h.

◆ pointer

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

Definition at line 4801 of file json.h.

◆ reference

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

Definition at line 4802 of file json.h.

◆ string_type

template<typename IteratorType >
using nlohmann::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 4804 of file json.h.

◆ value_type

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

Definition at line 4800 of file json.h.

Constructor & Destructor Documentation

◆ iteration_proxy_value() [1/4]

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

◆ iteration_proxy_value() [2/4]

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

Definition at line 4820 of file json.h.

◆ iteration_proxy_value() [3/4]

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

◆ iteration_proxy_value() [4/4]

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

◆ ~iteration_proxy_value()

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

Member Function Documentation

◆ key()

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

return key of the iterator

Definition at line 4874 of file json.h.

◆ operator!=()

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

inequality operator (needed for range-based for)

Definition at line 4868 of file json.h.

◆ operator*()

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

dereference operator (needed for range-based for)

Definition at line 4839 of file json.h.

◆ operator++() [1/2]

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

increment operator (needed for range-based for)

Definition at line 4845 of file json.h.

◆ operator++() [2/2]

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

Definition at line 4853 of file json.h.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ operator==()

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

equality operator (needed for InputIterator)

Definition at line 4862 of file json.h.

◆ value()

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

return value of the iterator

Definition at line 4910 of file json.h.


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