| cocos2d-x 3.0 |
)- 类列表 - 类索引 - 类继承关系 - 类成员
全部) 类) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义) 组) 页)
Public 类型 | Public 成员函数 | 静态 Public 属性 | 所有成员列表
Value类 参考
#include
| ## Public 类型 | |
| enum | Type { NONE = 0, BYTE, INTEGER, FLOAT, DOUBLE, BOOLEAN, STRING, VECTOR, MAP, INT_KEY_MAP } |
| ## Public 成员函数 | |
| 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) |
| 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 () |
| ## 静态 Public 属性 | |
| static const Value | Null |
成员枚举类型说明
| strong |
| 枚举值 | |
|---|---|
| NONE | |
| BYTE | |
| INTEGER | |
| FLOAT | |
| DOUBLE | |
| BOOLEAN | |
| STRING | |
| VECTOR | |
| MAP | |
| INT_KEY_MAP |
构造及析构函数说明
| Value | ( | ) |
| explicit |
| explicit |
| explicit |
| explicit |
| explicit |
| explicit |
| explicit |
| explicit |
| explicit |
| explicit |
| explicit |
| explicit |
| explicit |
| Value | ( | const Value & | other | ) |
| Value | ( | Value && | other | ) |
| ~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 |
| 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 boolVal |
| unsigned char byteVal |
| double doubleVal |
| float floatVal |
| ValueMapIntKey* intKeyMapVal |
| int intVal |
| ValueMap* mapVal |
| static |
| std::string* strVal |
| ValueVector* vectorVal |
该类的文档由以下文件生成:
- /Users/zeroyang/Documents/github/cocos2d-x/cocos/base/CCValue.h

