Open Lighting Architecture: ola::web::JsonPointer::Iterator Class Reference

| Open Lighting Architecture 0.10.9

Loading...
Searching...
No Matches
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.
Iterator & | operator++ ()
| Move the iterator to the next token in the pointer.
Iterator & | operator++ (int)
| Move the iterator to the next token in the pointer.
std::string | operator* () const
| Return the current token.

## Member Function Documentation

## ◆ IsValid()

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:

- include/ola/web/JsonPointer.h