Wrap different general types of data into a same specific type named LuaValue. More...
Public Member Functions | |
LuaValue () | |
Default constructor of LuaValue. More... | |
LuaValue (const LuaValue &rhs) | |
Copy constructor of Data. | |
LuaValue & | operator= (const LuaValue &rhs) |
Override of operator= . | |
~LuaValue () | |
Destructor. | |
LuaValueType | getType () const |
Get the type of LuaValue object. More... | |
const std::string & | getObjectTypename () const |
Get the typename of the Ref object. More... | |
int | intValue () const |
Get the int value of LuaValue object. More... | |
float | floatValue () const |
Get the float value of LuaValue object. More... | |
bool | booleanValue () const |
Get the boolean value of LuaValue object. More... | |
const std::string & | stringValue () const |
Get the boolean value of LuaValue object. More... | |
const LuaValueDict & | dictValue () const |
Get the LuaValueDict value of LuaValue object. More... | |
const LuaValueArray & | arrayValue () const |
Get the LuaValueArray value of LuaValue object. More... | |
Ref * | ccobjectValue () const |
Get the Ref object of LuaValue object. More... | |
Static Public Member Functions | |
static const LuaValue | intValue (const int intValue) |
Construct a LuaValue object by a int value. More... | |
static const LuaValue | floatValue (const float floatValue) |
Construct a LuaValue object by a float value. More... | |
static const LuaValue | booleanValue (const bool booleanValue) |
Construct a LuaValue object by a boolean value. More... | |
static const LuaValue | stringValue (const char *stringValue) |
Construct a LuaValue object by a string pointer. More... | |
static const LuaValue | stringValue (const std::string &stringValue) |
Construct a LuaValue object by a std::string object. More... | |
static const LuaValue | dictValue (const LuaValueDict &dictValue) |
Construct a LuaValue object by a LuaValueDict value. More... | |
static const LuaValue | arrayValue (const LuaValueArray &arrayValue) |
Construct a LuaValue object by a LuaValueArray value. More... | |
static const LuaValue | ccobjectValue (Ref *ccobjectValue, const char *objectTypename) |
Construct a LuaValue object by a Ref object. More... | |
static const LuaValue | ccobjectValue (Ref *ccobjectValue, const std::string &objectTypename) |
Construct a LuaValue object by a Ref object. More... | |
Wrap different general types of data into a same specific type named LuaValue.
The general types supported as follows:int,float,bool,std::string,const char*,LuaValueDict,LuaValueArray,Ref.
@lua NA @js NA
|
inline |
Default constructor of LuaValue.
Set the default value for _type(LuaValueTypeInt) and _ccobjectType(nullptr),and init the _field.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
inline |
|
inline |
Get the typename of the Ref object.
|
inline |
Get the int value of LuaValue object.
|
inline |
Get the float value of LuaValue object.
|
inline |
Get the boolean value of LuaValue object.
|
inline |
Get the boolean value of LuaValue object.
|
inline |
Get the LuaValueDict value of LuaValue object.
|
inline |
Get the LuaValueArray value of LuaValue object.
|
inline |