slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
Public 类型 | Public 成员函数 | Private 属性 | 所有成员列表
detail::iteration_proxy_value< IteratorType > 模板类 参考

#include <json.hpp>

Public 类型

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 成员函数

 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)
 
iteration_proxy_valueoperator++ ()
 increment operator (needed for range-based for)
 
iteration_proxy_value operator++ (int) &
 
bool operator== (const iteration_proxy_value &o) const
 equality operator (needed for InputIterator)
 
bool operator!= (const iteration_proxy_value &o) const
 inequality operator (needed for range-based for)
 
const string_typekey () const
 return key of the iterator
 
IteratorType::reference value () const
 return value of the iterator
 

Private 属性

IteratorType anchor {}
 the iterator
 
std::size_t array_index = 0
 an index for arrays (used to create key names)
 
std::size_t array_index_last = 0
 last stringified array index
 
string_type array_index_str = "0"
 a string representation of the array index
 
string_type empty_str {}
 an empty string (to return a reference for primitive values)
 

成员类型定义说明

◆ difference_type

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

◆ iterator_category

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

◆ pointer

◆ reference

◆ string_type

template<typename IteratorType >
using detail::iteration_proxy_value< IteratorType >::string_type = typename std::remove_cv< typename std::remove_reference<decltype( std::declval<IteratorType>().key() ) >::type >::type

◆ value_type

构造及析构函数说明

◆ iteration_proxy_value() [1/4]

template<typename IteratorType >
detail::iteration_proxy_value< IteratorType >::iteration_proxy_value ( )
explicitdefault
这是这个函数的调用关系图:

◆ iteration_proxy_value() [2/4]

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

◆ iteration_proxy_value() [3/4]

◆ iteration_proxy_value() [4/4]

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

◆ ~iteration_proxy_value()

成员函数说明

◆ key()

return key of the iterator

函数调用图:

◆ operator!=()

inequality operator (needed for range-based for)

◆ operator*()

dereference operator (needed for range-based for)

◆ operator++() [1/2]

increment operator (needed for range-based for)

◆ operator++() [2/2]

函数调用图:

◆ operator=() [1/2]

◆ operator=() [2/2]

◆ operator==()

equality operator (needed for InputIterator)

◆ value()

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

return value of the iterator

类成员变量说明

◆ anchor

the iterator

◆ array_index

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

an index for arrays (used to create key names)

◆ array_index_last

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

last stringified array index

◆ array_index_str

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

a string representation of the array index

◆ empty_str

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


该类的文档由以下文件生成: