#include <Pt/Json/Document.h>
Constant document element.
|
|
const char * | name () const |
| | Returns the element name.
|
|
template<typename T> |
| bool | getValue (T &value) const |
| | Gets the value.
|
|
bool | isNull () const |
| | Returns true if element is null.
|
|
ConstElement | begin () const |
| | Begin of sub elements.
|
|
ConstElement | end () const |
| | End of sub elements.
|
|
ConstElement | getMember (const std::string &name) const |
| | Returns a sub element.
|
|
ConstElement | getMember (const char *name) const |
| | Returns a sub element.
|
|
ConstElement | operator[] (const std::string &name) const |
| | Returns a sub element.
|
|
ConstElement | operator[] (const char *name) const |
| | Returns a sub element.
|
|
const ConstElement & | operator* () const |
| | Allows using the element like an iterator.
|
|
const ConstElement * | operator-> () const |
| | Allows using the element like an iterator.
|
|
ConstElement & | operator++ () |
| | Allows using the element like an iterator.
|
|
bool | operator!= (const ConstElement &other) const |
| | Allows using the element like an iterator.
|
|
bool | operator== (const ConstElement &other) const |
| | Allows using the element like an iterator.
|
|
bool | operator! () const |
| | Returns true if element is invalid.
|