Google APIs Client Library for C++
JsonCppAbstractIterator< DATA, ITERATOR > Class Template Reference

A helper class for index or key-based iterators. More...

#include "client/data/jsoncpp_data.h"

List of all members.

Public Types

typedef ITERATOR::size_t size_t
typedef
JsonCppAbstractIterator< DATA,
ITERATOR > 
SelfType

Public Member Functions

 JsonCppAbstractIterator (const SelfType &copy)
 ~JsonCppAbstractIterator ()
SelfTypeoperator= (const JsonCppAbstractIterator &copy)
SelfTypeoperator++ ()
bool operator== (const SelfType &it) const
bool operator!= (const SelfType &it) const

Protected Member Functions

 JsonCppAbstractIterator (const ITERATOR &it)

Protected Attributes

ITERATOR it_

Detailed Description

template<typename DATA, typename ITERATOR>
class googleapis::client::JsonCppAbstractIterator< DATA, ITERATOR >

A helper class for index or key-based iterators.

It just delegates to the base JsonCpp iterator.

Note that because the data model is call-by-value-result theiterator can only return copies and not references. Therefore we'll not be able to modify values in place (i.e. this will not support a non-const iterator)


Member Typedef Documentation

typedef ITERATOR::size_t size_t

Constructor & Destructor Documentation

JsonCppAbstractIterator ( const SelfType copy) [inline, explicit]
~JsonCppAbstractIterator ( ) [inline]
JsonCppAbstractIterator ( const ITERATOR &  it) [inline, explicit, protected]

Member Function Documentation

bool operator!= ( const SelfType it) const [inline]
SelfType& operator++ ( ) [inline]
SelfType& operator= ( const JsonCppAbstractIterator< DATA, ITERATOR > &  copy) [inline]
bool operator== ( const SelfType it) const [inline]

Member Data Documentation

ITERATOR it_ [protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines