Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
nlohmann::detail::iteration_proxy< IteratorType > Class Template Reference

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

#include <json.hpp>

Classes

class  iteration_proxy_internal
 helper class for iteration More...
 

Public Member Functions

 iteration_proxy (typename IteratorType::reference cont) noexcept
 construct iteration proxy from a container More...
 
iteration_proxy_internal begin () noexcept
 return iterator begin (needed for range-based for) More...
 
iteration_proxy_internal 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 1606 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 1701 of file json.hpp.

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

Member Function Documentation

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

return iterator begin (needed for range-based for)

Definition at line 1705 of file json.hpp.

1706  {
1707  return iteration_proxy_internal(container.begin());
1708  }
IteratorType::reference container
the container to iterate
Definition: json.hpp:1697
template<typename IteratorType>
iteration_proxy_internal nlohmann::detail::iteration_proxy< IteratorType >::end ( )
inlinenoexcept

return iterator end (needed for range-based for)

Definition at line 1711 of file json.hpp.

1712  {
1713  return iteration_proxy_internal(container.end());
1714  }
IteratorType::reference container
the container to iterate
Definition: json.hpp:1697

Member Data Documentation

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

the container to iterate

Definition at line 1697 of file json.hpp.


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