Document::ConstElement Class Reference

#include <Pt/Json/Document.h>

Constant document element.

Public Member Functions

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 ConstElementoperator* () const
 Allows using the element like an iterator.
 
const ConstElementoperator-> () const
 Allows using the element like an iterator.
 
ConstElementoperator++ ()
 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.