cocos2d-x
3.3
|
#include <CCValue.h>
Public Types | |
enum | Type { NONE = 0, BYTE, INTEGER, FLOAT, DOUBLE, BOOLEAN, STRING, VECTOR, MAP, INT_KEY_MAP } |
Public Member Functions | |
Value () | |
Value (unsigned char v) | |
Value (int v) | |
Value (float v) | |
Value (double v) | |
Value (bool v) | |
Value (const char *v) | |
Value (const std::string &v) | |
Value (const ValueVector &v) | |
Value (ValueVector &&v) | |
Value (const ValueMap &v) | |
Value (ValueMap &&v) | |
Value (const ValueMapIntKey &v) | |
Value (ValueMapIntKey &&v) | |
Value (const Value &other) | |
Value (Value &&other) | |
~Value () | |
Value & | operator= (const Value &other) |
Value & | operator= (Value &&other) |
Value & | operator= (unsigned char v) |
Value & | operator= (int v) |
Value & | operator= (float v) |
Value & | operator= (double v) |
Value & | operator= (bool v) |
Value & | operator= (const char *v) |
Value & | operator= (const std::string &v) |
Value & | operator= (const ValueVector &v) |
Value & | operator= (ValueVector &&v) |
Value & | operator= (const ValueMap &v) |
Value & | operator= (ValueMap &&v) |
Value & | operator= (const ValueMapIntKey &v) |
Value & | operator= (ValueMapIntKey &&v) |
bool | operator!= (const Value &v) |
bool | operator!= (const Value &v) const |
bool | operator== (const Value &v) |
bool | operator== (const Value &v) const |
unsigned char | asByte () const |
int | asInt () const |
float | asFloat () const |
double | asDouble () const |
bool | asBool () const |
std::string | asString () const |
ValueVector & | asValueVector () |
const ValueVector & | asValueVector () const |
ValueMap & | asValueMap () |
const ValueMap & | asValueMap () const |
ValueMapIntKey & | asIntKeyMap () |
const ValueMapIntKey & | asIntKeyMap () const |
bool | isNull () const |
Type | getType () const |
std::string | getDescription () |
Static Public Attributes | |
static const Value | Null |
|
strong |
Value | ( | ) |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
~Value | ( | ) |
bool asBool | ( | ) | const |
unsigned char asByte | ( | ) | const |
double asDouble | ( | ) | const |
float asFloat | ( | ) | const |
int asInt | ( | ) | const |
ValueMapIntKey& asIntKeyMap | ( | ) |
const ValueMapIntKey& asIntKeyMap | ( | ) | const |
std::string asString | ( | ) | const |
ValueMap& asValueMap | ( | ) |
const ValueMap& asValueMap | ( | ) | const |
ValueVector& asValueVector | ( | ) |
const ValueVector& asValueVector | ( | ) | const |
std::string getDescription | ( | ) |
|
inline |
|
inline |
bool operator!= | ( | const Value & | v | ) |
bool operator!= | ( | const Value & | v | ) | const |
Value& operator= | ( | unsigned char | v | ) |
Value& operator= | ( | int | v | ) |
Value& operator= | ( | float | v | ) |
Value& operator= | ( | double | v | ) |
Value& operator= | ( | bool | v | ) |
Value& operator= | ( | const char * | v | ) |
Value& operator= | ( | const std::string & | v | ) |
Value& operator= | ( | const ValueVector & | v | ) |
Value& operator= | ( | ValueVector && | v | ) |
Value& operator= | ( | const ValueMapIntKey & | v | ) |
Value& operator= | ( | ValueMapIntKey && | v | ) |
bool operator== | ( | const Value & | v | ) |
bool operator== | ( | const Value & | v | ) | const |
bool boolVal |
unsigned char byteVal |
double doubleVal |
float floatVal |
ValueMapIntKey* intKeyMapVal |
int intVal |
ValueMap* mapVal |
|
static |
std::string* strVal |
ValueVector* vectorVal |