Open Lighting Architecture  0.9.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ola::web::JsonPointer::Iterator Class Reference

Detailed Description

An iterator for traversing a JsonPointer.

The iterator allows forward iteration only. Iterators don't allow modifications to the underlying JsonPointer.

Public Member Functions

 Iterator (const JsonPointer *pointer)
bool IsValid () const
 Check if this iterator is valid.
bool AtEnd () const
 Check if the iterator is pointing to the last token.
Iteratoroperator++ ()
 Move the iterator to the next token in the pointer.
Iteratoroperator++ (int)
 Move the iterator to the next token in the pointer.
std::string operator* () const
 Return the current token.

Member Function Documentation

bool ola::web::JsonPointer::Iterator::IsValid ( ) const
inline

Check if this iterator is valid.

An iterator is invalid if it refers to a token path the end of the pointer.


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