variant type that may hold a string, int, double, array, bool, nil, or object.
#include <value.hpp>
Public Member Functions | |
| value (const value &c) | |
| value (const std::string &v) | |
| value (const array &a) | |
| value (const object &a) | |
| value (double v) | |
| value (bool v) | |
| operator int () const | |
| operator int64_t () const | |
| operator uint64_t () const | |
| operator uint32_t () const | |
| operator uint16_t () const | |
| operator uint8_t () const | |
| operator int16_t () const | |
| operator int8_t () const | |
| operator double () const | |
| operator float () const | |
| operator bool () const | |
| operator std::string () const | |
| operator const json::object & () const | |
| operator json::object & () | |
| operator const json::array & () const | |
| operator json::array & () | |
| value | get (const std::string &key) const |
| bool | is_array () const |
| bool | is_object () const |
| bool | is_string () const |
| bool | is_null () const |
| bool | is_bool () const |
| bool | is_real () const |
| bool | operator== (const null_t &t) const |
| bool | operator== (const std::string &v) const |
| bool | contains (const std::string &key) const |
| value & | operator= (int64_t v) |
| value & | operator= (uint64_t v) |
| value & | operator= (int32_t v) |
| value & | operator= (uint32_t v) |
| value & | operator= (int16_t v) |
| value & | operator= (uint16_t v) |
| value & | operator= (int8_t v) |
| value & | operator= (uint8_t v) |
| value & | operator= (double v) |
| value & | operator= (bool v) |
| value & | operator= (null_t v) |
| value & | operator= (const std::string &v) |
| value & | operator= (const char *v) |
| value & | operator= (const json::object &v) |
| value & | operator= (const json::array &v) |
| value & | operator[] (const std::string &index) |
| const value & | operator[] (const std::string &) const |
| value & | operator[] (const char *index) |
| const value & | operator[] (const char *index) const |
| value & | operator[] (uint32_t index) |
| const value & | operator[] (uint32_t index) const |
| size_t | size () |
| void | resize (uint32_t size) |
| void | clear () |
Public Attributes | |
| value_variant | val |
1.8.0