JSON Voorhees
Killer JSON for C++
jsonv::value::basic_object_iterator< T, TIterator > Struct Template Reference

The base iterator type for iterating over object types. More...

#include <jsonv/value.hpp>

+ Inheritance diagram for jsonv::value::basic_object_iterator< T, TIterator >:

Public Member Functions

 basic_object_iterator (const basic_object_iterator &source)
 
template<typename U , typename UIterator >
 basic_object_iterator (const basic_object_iterator< U, UIterator > &source, typename std::enable_if< std::is_convertible< U *, T * >::value >::type *=0)
 This allows assignment from an object_iterator to a const_object_iterator. More...
 
basic_object_iteratoroperator= (const basic_object_iterator &source)
 
template<typename U , typename UIterator >
std::enable_if< std::is_convertible< U *, T * >::value, basic_object_iterator & >::type operator= (const basic_object_iterator< U, UIterator > &source)
 
basic_object_iteratoroperator++ ()
 
basic_object_iterator operator++ (int) const
 
basic_object_iteratoroperator-- ()
 
basic_object_iterator operator-- (int) const
 
template<typename U , typename UIterator >
bool operator== (const basic_object_iterator< U, UIterator > &other) const
 
template<typename U , typename UIterator >
bool operator!= (const basic_object_iterator< U, UIterator > &other) const
 
T & operator* () const
 
T * operator-> () const
 

Friends

class value
 

Detailed Description

template<typename T, typename TIterator>
struct jsonv::value::basic_object_iterator< T, TIterator >

The base iterator type for iterating over object types.

It is a bidirectional iterator similar to a std::map<std::string, jsonv::value>.

Definition at line 292 of file value.hpp.

Constructor & Destructor Documentation

template<typename T, typename TIterator>
template<typename U , typename UIterator >
jsonv::value::basic_object_iterator< T, TIterator >::basic_object_iterator ( const basic_object_iterator< U, UIterator > &  source,
typename std::enable_if< std::is_convertible< U *, T * >::value >::type *  = 0 
)
inline

This allows assignment from an object_iterator to a const_object_iterator.

Definition at line 306 of file value.hpp.


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