All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
nlohmann::detail::iteration_proxy< IteratorType > Class Template Reference

proxy class for the items() function More...

#include <json.hpp>

Public Member Functions

 iteration_proxy (typename IteratorType::reference cont) noexcept
 construct iteration proxy from a container More...
 
iteration_proxy_value
< IteratorType > 
begin () noexcept
 return iterator begin (needed for range-based for) More...
 
iteration_proxy_value
< IteratorType > 
end () noexcept
 return iterator end (needed for range-based for) More...
 

Private Attributes

IteratorType::reference container
 the container to iterate More...
 

Detailed Description

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

proxy class for the items() function

Definition at line 3385 of file json.hpp.

Constructor & Destructor Documentation

template<typename IteratorType>
nlohmann::detail::iteration_proxy< IteratorType >::iteration_proxy ( typename IteratorType::reference  cont)
inlineexplicitnoexcept

construct iteration proxy from a container

Definition at line 3393 of file json.hpp.

3394  : container(cont) {}
IteratorType::reference container
the container to iterate
Definition: json.hpp:3389

Member Function Documentation

template<typename IteratorType>
iteration_proxy_value<IteratorType> nlohmann::detail::iteration_proxy< IteratorType >::begin ( )
inlinenoexcept

return iterator begin (needed for range-based for)

Definition at line 3397 of file json.hpp.

3398  {
3399  return iteration_proxy_value<IteratorType>(container.begin());
3400  }
IteratorType::reference container
the container to iterate
Definition: json.hpp:3389
template<typename IteratorType>
iteration_proxy_value<IteratorType> nlohmann::detail::iteration_proxy< IteratorType >::end ( void  )
inlinenoexcept

return iterator end (needed for range-based for)

Definition at line 3403 of file json.hpp.

3404  {
3405  return iteration_proxy_value<IteratorType>(container.end());
3406  }
IteratorType::reference container
the container to iterate
Definition: json.hpp:3389

Member Data Documentation

template<typename IteratorType>
IteratorType::reference nlohmann::detail::iteration_proxy< IteratorType >::container
private

the container to iterate

Definition at line 3389 of file json.hpp.


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