NDDEM
|
An internal iterator that handles both array and object types. More...
Public Member Functions | |
Iterator () | |
Iterator (MemberIterator begin, MemberIterator end) | |
Iterator (ValueIterator begin, ValueIterator end) | |
Iterator & | operator++ () |
Advance to the next node. More... | |
GenericValue const & | value () |
Get the value of the current node. More... | |
const char * | name () const |
Get the name of the current node, or nullptr if it has no name. More... | |
void | search (const char *searchName) |
Adjust our position such that we are at the node with the given name. More... | |
Private Types | |
enum | Type { Value , Member , Null_ } |
Private Attributes | |
MemberIterator | itsMemberItBegin |
MemberIterator | itsMemberItEnd |
The member iterator (object) More... | |
ValueIterator | itsValueItBegin |
The value iterator (array) More... | |
size_t | itsIndex |
size_t | itsSize |
The current index of this iterator. More... | |
enum cereal::JSONInputArchive::Iterator::Type | itsType |
Whether this holds values (array) or members (objects) or nothing. More... | |
An internal iterator that handles both array and object types.
This class is a variant and holds both types of iterators that rapidJSON supports - one for arrays and one for objects.
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
Get the name of the current node, or nullptr if it has no name.
|
inline |
Advance to the next node.
|
inline |
Adjust our position such that we are at the node with the given name.
Exception | if no such named node exists |
|
inline |
Get the value of the current node.
|
private |
|
private |
|
private |
The member iterator (object)
|
private |
The current index of this iterator.
|
private |
Whether this holds values (array) or members (objects) or nothing.
|
private |
The value iterator (array)