|
| const_proxy (const jobject &source, const std::string key) |
| Constructor. More...
|
|
const_value | array (size_t index) const |
| Returns another constant value from this array. More...
|
|
std::string | as_string () const |
| Returns a string representation of the value.
|
|
| operator std::string () const |
|
bool | operator== (const std::string other) const |
| Comparison operator.
|
|
bool | operator!= (const std::string other) const |
| Comparison operator.
|
|
| operator int () const |
| Casts the value as an integer.
|
|
| operator unsigned int () const |
| Casts the value as an unsigned integer.
|
|
| operator long () const |
| Casts teh value as a long integer.
|
|
| operator unsigned long () const |
| Casts the value as an unsigned long integer.
|
|
| operator char () const |
| Casts teh value as a char.
|
|
| operator float () const |
| Casts the value as a floating point numer.
|
|
| operator double () const |
| Casts the value as a double-precision floating point number.
|
|
json::jobject | as_object () const |
| Casts the value as a JSON object. More...
|
|
| operator json::jobject () const |
|
| operator std::vector< int > () const |
| Casts an array of integers.
|
|
| operator std::vector< unsigned int > () const |
| Casts an array of unsigned integers.
|
|
| operator std::vector< long > () const |
| Casts an array of long integers.
|
|
| operator std::vector< unsigned long > () const |
| Casts an array of unsigned long integers.
|
|
| operator std::vector< char > () const |
| Casts an array of chars.
|
|
| operator std::vector< float > () const |
| Casts an array of floating-point numbers.
|
|
| operator std::vector< double > () const |
| Casts an array of double floating-point numbers.
|
|
| operator std::vector< json::jobject > () const |
| Casts an array of JSON objects.
|
|
| operator std::vector< std::string > () const |
| Casts an array of strings.
|
|
template<typename T > |
std::vector< T > | as_array () const |
| Casts an array. More...
|
|
bool | is_string () const |
| Returns true if the value is a string.
|
|
bool | is_number () const |
| Returns true if the value is a number.
|
|
bool | is_object () const |
| Returns true if the value is an object.
|
|
bool | is_array () const |
| Returns true if the value is an array.
|
|
bool | is_bool () const |
| Returns true if the value is a bool.
|
|
bool | is_true () const |
| Returns true if the value is a boolean and set to true.
|
|
bool | is_null () const |
| Returns true if the value is a null value.
|
|
Represents an entry as a constant proxy to the value.
This proxy is more memory-efficent than a json::jobject::const_value but cannot use a JSON array as a source