Google APIs Client Library for C++
|
A helper class for index or key-based iterators. More...
#include "client/data/jsoncpp_data.h"
Public Types | |
typedef ITERATOR::size_t | size_t |
typedef JsonCppAbstractIterator< DATA, ITERATOR > | SelfType |
Public Member Functions | |
JsonCppAbstractIterator (const SelfType ©) | |
~JsonCppAbstractIterator () | |
SelfType & | operator= (const JsonCppAbstractIterator ©) |
SelfType & | operator++ () |
bool | operator== (const SelfType &it) const |
bool | operator!= (const SelfType &it) const |
Protected Member Functions | |
JsonCppAbstractIterator (const ITERATOR &it) | |
Protected Attributes | |
ITERATOR | it_ |
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)
typedef JsonCppAbstractIterator<DATA, ITERATOR> SelfType |
Reimplemented in JsonCppConstAssociativeIterator< T >, and JsonCppConstIndexIterator< T >.
typedef ITERATOR::size_t size_t |
JsonCppAbstractIterator | ( | const SelfType & | copy | ) | [inline, explicit] |
~JsonCppAbstractIterator | ( | ) | [inline] |
JsonCppAbstractIterator | ( | const ITERATOR & | it | ) | [inline, explicit, protected] |
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] |
ITERATOR it_ [protected] |