Document::ConstElement Class Reference

#include <Pt/Json/Document.h>

Constant document element.

Public Member Functions

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.
 
template<typename T >
bool getValue (T &value) const
 Gets the value.
 
bool isNull () const
 Returns true if element is null.
 
const char * name () const
 Returns the element name.
 
bool operator! () const
 Returns true if element is invalid.
 
bool operator!= (const ConstElement &other) 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.
 
const ConstElementoperator-> () const
 Allows using the element like an iterator.
 
bool operator== (const ConstElement &other) const
 Allows using the element like an iterator.
 
ConstElement operator[] (const std::string &name) const
 Returns a sub element.
 
ConstElement operator[] (const char *name) const
 Returns a sub element.