Back to Site
Loading...
Searching...
No Matches
librats::Json::Iterator< Const > Class Template Reference

#include <json.h>

Public Types

using JsonRef = typename std::conditional< Const, const Json &, Json & >::type
 
using JsonPtr = typename std::conditional< Const, const Json *, Json * >::type
 

Public Member Functions

 Iterator (JsonPtr owner, std::size_t idx)
 
JsonRef operator* () const
 
JsonPtr operator-> () const
 
Iteratoroperator++ ()
 
Iterator operator++ (int)
 
bool operator== (const Iterator &o) const
 
bool operator!= (const Iterator &o) const
 
const std::string & key () const
 
JsonRef value () const
 

Detailed Description

template<bool Const>
class librats::Json::Iterator< Const >

Definition at line 320 of file json.h.

Member Typedef Documentation

◆ JsonPtr

template<bool Const>
using librats::Json::Iterator< Const >::JsonPtr = typename std::conditional<Const, const Json*, Json*>::type

Definition at line 323 of file json.h.

◆ JsonRef

template<bool Const>
using librats::Json::Iterator< Const >::JsonRef = typename std::conditional<Const, const Json&, Json&>::type

Definition at line 322 of file json.h.

Constructor & Destructor Documentation

◆ Iterator()

template<bool Const>
librats::Json::Iterator< Const >::Iterator ( JsonPtr  owner,
std::size_t  idx 
)
inline

Definition at line 325 of file json.h.

Member Function Documentation

◆ key()

template<bool Const>
const std::string & librats::Json::Iterator< Const >::key ( ) const
inline

Definition at line 422 of file json.h.

◆ operator!=()

template<bool Const>
bool librats::Json::Iterator< Const >::operator!= ( const Iterator< Const > &  o) const
inline

Definition at line 332 of file json.h.

◆ operator*()

template<bool Const>
JsonRef librats::Json::Iterator< Const >::operator* ( ) const
inline

Definition at line 327 of file json.h.

◆ operator++() [1/2]

template<bool Const>
Iterator & librats::Json::Iterator< Const >::operator++ ( )
inline

Definition at line 329 of file json.h.

◆ operator++() [2/2]

template<bool Const>
Iterator librats::Json::Iterator< Const >::operator++ ( int  )
inline

Definition at line 330 of file json.h.

◆ operator->()

template<bool Const>
JsonPtr librats::Json::Iterator< Const >::operator-> ( ) const
inline

Definition at line 328 of file json.h.

◆ operator==()

template<bool Const>
bool librats::Json::Iterator< Const >::operator== ( const Iterator< Const > &  o) const
inline

Definition at line 331 of file json.h.

◆ value()

template<bool Const>
Json::Iterator< Const >::JsonRef librats::Json::Iterator< Const >::value ( ) const
inline

Definition at line 433 of file json.h.


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