|
|
| ValueIteratorBase () |
| | Default constructor.
|
|
virtual | ~ValueIteratorBase () |
| | Destructor.
|
|
| ValueIteratorBase (const ObjectIterator &rhs) |
| bool | valid () const |
| | query validity of the object.
|
| ArrayIndex | index () const |
| | Obtain the index of the referenced value.
|
| const char * | key () const |
| | Obtain the current index or member key value.
|
|
bool | key (const std::string &member) const |
| | Query if the member key exists at the current position of the iterator object.
|
|
bool | operator== (const SelfType &rhs) const |
|
bool | operator!= (const SelfType &rhs) const |
|
DifferenceType | operator- (const SelfType &rhs) const |
|
|
void | copy (const SelfType &rhs) |
|
ValueTypeReference | dereference () const |
|
ValueTypePointer | pointer () const |
|
void | increment () |
|
void | decrement () |
|
DifferenceType | distance (const SelfType &rhs) const |
|
|
enum IteratorType | type () const |
|
| ObjectIterator | object_ |
| | A pointer to the object type iterator.
|
| enum IteratorType | type_ |
Definition at line 43 of file ValueIteratorBase.hpp.
◆ DifferenceType
| typedef nom::size_type nom::ValueIteratorBase::DifferenceType |
◆ RawPtr
◆ SelfType
◆ ValueTypePointer
| typedef Value* nom::ValueIteratorBase::ValueTypePointer |
◆ ValueTypeReference
| typedef Value& nom::ValueIteratorBase::ValueTypeReference |
◆ IteratorType
| enum nom::ValueIteratorBase::IteratorType |
◆ index()
| ArrayIndex nom::ValueIteratorBase::index |
( |
| ) |
const |
Obtain the index of the referenced value.
- Returns
- The array element's index on success, or -1 if the referenced value is not an array element.
◆ key()
| const char * nom::ValueIteratorBase::key |
( |
| ) |
const |
Obtain the current index or member key value.
- Returns
- Member key of the referenced value on success, nullptr if not not an object type or the member key is not found.
- Todo
- Try handling the return of the key (string) or index (integer) more elegantly? (Presently, we are converting index values to a string).
◆ valid()
| bool nom::ValueIteratorBase::valid |
( |
| ) |
const |
query validity of the object.
- Returns
- The object is always assumed to be invalid when Value::ValueType::NullValue is the set type (set during construction).
◆ object_
| ObjectIterator nom::ValueIteratorBase::object_ |
|
private |
◆ type_
| enum IteratorType nom::ValueIteratorBase::type_ |
|
private |
The documentation for this class was generated from the following file: