cocos2d-x  3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Value Class Reference

#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 ()
 Value ()
 Value (unsigned char v)
 Value ( var v)
 Value ( local v)
 Value (int v)
 Value ( var v)
 Value ( local v)
 Value (float v)
 Value ( var v)
 Value ( local v)
 Value (double v)
 Value ( var v)
 Value ( local v)
 Value (bool v)
 Value ( var v)
 Value ( local v)
 Value (const char *v)
 Value ( var v)
 Value ( local v)
 Value (const std::string &v)
 Value ( var v)
 Value ( local v)
 Value (const ValueVector &v)
 Value (ValueVector &&v)
 Value (const ValueMap &v)
 Value ( var v)
 Value ( local v)
 Value (ValueMap &&v)
 Value (const ValueMapIntKey &v)
 Value ( var v)
 Value ( local v)
 Value (ValueMapIntKey &&v)
 Value (const Value &other)
 Value (Value &&other)
 Value ( var other)
 Value ( local other)
 ~Value ()
 ~Value ()
 ~Value ()
Valueoperator= (const Value &other)
var operator= ( var other)
local operator= ( local other)
Valueoperator= (Value &&other)
var operator= ( var other)
local operator= ( local other)
Valueoperator= (unsigned char v)
var operator= ( var v)
local operator= ( local v)
Valueoperator= (int v)
var operator= ( var v)
local operator= ( local v)
Valueoperator= (float v)
var operator= ( var v)
local operator= ( local v)
Valueoperator= (double v)
var operator= ( var v)
local operator= ( local v)
Valueoperator= (bool v)
var operator= ( var v)
local operator= ( local v)
Valueoperator= (const char *v)
var operator= ( var v)
local operator= ( local v)
Valueoperator= (const std::string &v)
var operator= ( var v)
local operator= ( local v)
Valueoperator= (const ValueVector &v)
local operator= ( local v)
Valueoperator= (ValueVector &&v)
var operator= ( var v)
local operator= ( local v)
Valueoperator= (const ValueMap &v)
var operator= ( var v)
local operator= ( local v)
Valueoperator= (ValueMap &&v)
var operator= ( var v)
local operator= ( local v)
Valueoperator= (const ValueMapIntKey &v)
var operator= ( var v)
local operator= ( local v)
Valueoperator= (ValueMapIntKey &&v)
var operator= ( var v)
local operator= ( local v)
bool operator!= (const Value &v)
var operator!= ( var v)
local operator!= ( local v)
bool operator!= (const Value &v) const
var operator!= ( var v)
local operator!= ( local v)
bool operator== (const Value &v)
var operator== ( var v)
local operator== ( local v)
bool operator== (const Value &v) const
var operator== ( var v)
local operator== ( local v)
unsigned char asByte () const
var asByte ()
local asByte ()
int asInt () const
var asInt ()
local asInt ()
float asFloat () const
var asFloat ()
local asFloat ()
double asDouble () const
bool asBool () const
local asBool ()
std::string asString () const
var asString ()
local asString ()
ValueVectorasValueVector ()
var asValueVector ()
local asValueVector ()
const ValueVectorasValueVector () const
ValueMapasValueMap ()
var asValueMap ()
local asValueMap ()
const ValueMapasValueMap () const
local asValueMap ()
ValueMapIntKeyasIntKeyMap ()
var asIntKeyMap ()
local asIntKeyMap ()
const ValueMapIntKeyasIntKeyMap () const
bool isNull () const
var isNull ()
local isNull ()
Type getType () const
var getType ()
local getType ()
std::string getDescription ()
local getDescription ()

Static Public Attributes

static const Value Null
var Null
local Null

Member Enumeration Documentation

enum Type
strong
Enumerator
NONE 
BYTE 
INTEGER 
FLOAT 
DOUBLE 
BOOLEAN 
STRING 
VECTOR 
MAP 
INT_KEY_MAP 
var Type
strong
Enumerator
NONE 
BYTE 
INTEGER 
FLOAT 
DOUBLE 
BOOLEAN 
STRING 
VECTOR 
MAP 
INT_KEY_MAP 
local Type
strong
Enumerator
NONE 
BYTE 
INTEGER 
FLOAT 
DOUBLE 
BOOLEAN 
STRING 
VECTOR 
MAP 
INT_KEY_MAP 

Constructor & Destructor Documentation

Value ( )
var Value ( )
local Value ( )
Value ( unsigned char  v)
explicit
var Value ( var  v)
explicit
local Value ( local  v)
explicit
Value ( int  v)
explicit
var Value ( var  v)
explicit
local Value ( local  v)
explicit
Value ( float  v)
explicit
var Value ( var  v)
explicit
local Value ( local  v)
explicit
Value ( double  v)
explicit
var Value ( var  v)
explicit
local Value ( local  v)
explicit
Value ( bool  v)
explicit
var Value ( var  v)
explicit
local Value ( local  v)
explicit
Value ( const char *  v)
explicit
var Value ( var  v)
explicit
local Value ( local  v)
explicit
Value ( const std::string &  v)
explicit
var Value ( var  v)
explicit
local Value ( local  v)
explicit
Value ( const ValueVector v)
explicit
var Value ( var  v)
explicit
local Value ( local  v)
explicit
Value ( ValueVector &&  v)
explicit
var Value ( var  v)
explicit
local Value ( local  v)
explicit
Value ( const ValueMap v)
explicit
var Value ( var  v)
explicit
local Value ( local  v)
explicit
Value ( ValueMap &&  v)
explicit
var Value ( var  v)
explicit
local Value ( local  v)
explicit
Value ( const ValueMapIntKey v)
explicit
var Value ( var  v)
explicit
local Value ( local  v)
explicit
Value ( ValueMapIntKey &&  v)
explicit
var Value ( var  v)
explicit
local Value ( local  v)
explicit
Value ( const Value other)
var Value ( var  other)
local Value ( local  other)
Value ( Value &&  other)
var Value ( var  other)
local Value ( local  other)
~Value ( )
var ~Value ( )
local ~Value ( )

Member Function Documentation

bool asBool ( ) const
var asBool ( )
local asBool ( )
unsigned char asByte ( ) const
var asByte ( )
local asByte ( )
double asDouble ( ) const
var asDouble ( )
local asDouble ( )
float asFloat ( ) const
var asFloat ( )
local asFloat ( )
int asInt ( ) const
var asInt ( )
local asInt ( )
ValueMapIntKey& asIntKeyMap ( )
var asIntKeyMap ( )
local asIntKeyMap ( )
const ValueMapIntKey& asIntKeyMap ( ) const
var asIntKeyMap ( )
local asIntKeyMap ( )
std::string asString ( ) const
var asString ( )
local asString ( )
ValueMap& asValueMap ( )
var asValueMap ( )
local asValueMap ( )
const ValueMap& asValueMap ( ) const
var asValueMap ( )
local asValueMap ( )
ValueVector& asValueVector ( )
var asValueVector ( )
local asValueVector ( )
const ValueVector& asValueVector ( ) const
var asValueVector ( )
local asValueVector ( )
std::string getDescription ( )
var getDescription ( )
local getDescription ( )
Type getType ( ) const
inline
var getType ( )
inline
local getType ( )
inline
bool isNull ( ) const
inline
var isNull ( )
inline
local isNull ( )
inline
bool operator!= ( const Value v)
bool operator!= ( var  v)
bool operator!= ( local  v)
bool operator!= ( const Value v) const
bool operator!= ( var  v)
bool operator!= ( local  v)
Value& operator= ( const Value other)
Value& operator= ( var  other)
Value& operator= ( local  other)
Value& operator= ( Value &&  other)
Value& operator= ( var  other)
Value& operator= ( local  other)
Value& operator= ( unsigned char  v)
Value& operator= ( var  v)
Value& operator= ( local  v)
Value& operator= ( int  v)
Value& operator= ( var  v)
Value& operator= ( local  v)
Value& operator= ( float  v)
Value& operator= ( var  v)
Value& operator= ( local  v)
Value& operator= ( double  v)
Value& operator= ( var  v)
Value& operator= ( local  v)
Value& operator= ( bool  v)
Value& operator= ( var  v)
Value& operator= ( local  v)
Value& operator= ( const char *  v)
Value& operator= ( var  v)
Value& operator= ( local  v)
Value& operator= ( const std::string &  v)
Value& operator= ( var  v)
Value& operator= ( local  v)
Value& operator= ( const ValueVector v)
Value& operator= ( var  v)
Value& operator= ( local  v)
Value& operator= ( ValueVector &&  v)
Value& operator= ( var  v)
Value& operator= ( local  v)
Value& operator= ( const ValueMap v)
Value& operator= ( var  v)
Value& operator= ( local  v)
Value& operator= ( ValueMap &&  v)
Value& operator= ( var  v)
Value& operator= ( local  v)
Value& operator= ( const ValueMapIntKey v)
Value& operator= ( var  v)
Value& operator= ( local  v)
Value& operator= ( ValueMapIntKey &&  v)
Value& operator= ( var  v)
Value& operator= ( local  v)
bool operator== ( const Value v)
bool operator== ( var  v)
bool operator== ( local  v)
bool operator== ( const Value v) const
bool operator== ( var  v)
bool operator== ( local  v)

Member Data Documentation

bool boolVal
var boolVal
local boolVal
unsigned char byteVal
var byteVal
local byteVal
double doubleVal
var doubleVal
local doubleVal
float floatVal
var floatVal
local floatVal
ValueMapIntKey* intKeyMapVal
var intKeyMapVal
local intKeyMapVal
int intVal
var intVal
local intVal
ValueMap* mapVal
var mapVal
local mapVal
const Value Null
static
var Null
static
local Null
static
std::string* strVal
var strVal
local strVal
ValueVector* vectorVal
var vectorVal
local vectorVal

The documentation for this class was generated from the following file: