#include <CCValue.h>
Public Types | |
enum | Type { NONE = 0, BYTE, INTEGER, FLOAT, DOUBLE, BOOLEAN, STRING, VECTOR, MAP, INT_KEY_MAP } |
Value type wrapped by Value. More... | |
Public Member Functions | |
Value () | |
Default constructor. More... | |
Value (unsigned char v) | |
Create a Value by an unsigned char value. More... | |
Value ( var v) | |
Create a Value by an unsigned char value. More... | |
Value ( local v) | |
Create a Value by an unsigned char value. More... | |
Value (int v) | |
Create a Value by an integer value. More... | |
Value ( var v) | |
Create a Value by an integer value. More... | |
Value ( local v) | |
Create a Value by an integer value. More... | |
Value (float v) | |
Create a Value by a float value. More... | |
Value ( var v) | |
Create a Value by a float value. More... | |
Value ( local v) | |
Create a Value by a float value. More... | |
Value (double v) | |
Create a Value by a double value. More... | |
Value ( var v) | |
Create a Value by a double value. More... | |
Value ( local v) | |
Create a Value by a double value. More... | |
Value (bool v) | |
Create a Value by a bool value. More... | |
Value ( var v) | |
Create a Value by a bool value. More... | |
Value ( local v) | |
Create a Value by a bool value. More... | |
Value (const char *v) | |
Create a Value by a char pointer. More... | |
Value ( var v) | |
Create a Value by a char pointer. More... | |
Value ( local v) | |
Create a Value by a char pointer. More... | |
Value (const std::string &v) | |
Create a Value by a string. More... | |
Value ( var v) | |
Create a Value by a string. More... | |
Value ( local v) | |
Create a Value by a string. More... | |
Value (const ValueVector &v) | |
Create a Value by a ValueVector object. More... | |
Value ( var v) | |
Create a Value by a ValueVector object. More... | |
Value ( local v) | |
Create a Value by a ValueVector object. More... | |
Value (ValueVector &&v) | |
Create a Value by a ValueVector object. More... | |
Value ( var v) | |
Create a Value by a ValueVector object. More... | |
Value ( local v) | |
Create a Value by a ValueVector object. More... | |
Value (const ValueMap &v) | |
Create a Value by a ValueMap object. More... | |
Value ( var v) | |
Create a Value by a ValueMap object. More... | |
Value ( local v) | |
Create a Value by a ValueMap object. More... | |
Value (ValueMap &&v) | |
Create a Value by a ValueMap object. More... | |
Value ( var v) | |
Create a Value by a ValueMap object. More... | |
Value ( local v) | |
Create a Value by a ValueMap object. More... | |
Value (const ValueMapIntKey &v) | |
Create a Value by a ValueMapIntKey object. More... | |
Value ( var v) | |
Create a Value by a ValueMapIntKey object. More... | |
Value ( local v) | |
Create a Value by a ValueMapIntKey object. More... | |
Value (ValueMapIntKey &&v) | |
Create a Value by a ValueMapIntKey object. More... | |
Value ( var v) | |
Create a Value by a ValueMapIntKey object. More... | |
Value ( local v) | |
Create a Value by a ValueMapIntKey object. More... | |
Value (const Value &other) | |
Create a Value by anthoer Value object. More... | |
Value (Value &&other) | |
Create a Value by a Value object. More... | |
Value ( var other) | |
Create a Value by a Value object. More... | |
Value ( local other) | |
Create a Value by a Value object. More... | |
~Value () | |
Destructor. More... | |
~Value () | |
Destructor. More... | |
~Value () | |
Destructor. More... | |
Value & | operator= (const Value &other) |
Assignment operator, assign from Value to Value. More... | |
var | operator= ( var other) |
Assignment operator, assign from Value to Value. More... | |
local | operator= ( local other) |
Assignment operator, assign from Value to Value. More... | |
Value & | operator= (Value &&other) |
Assignment operator, assign from Value to Value. More... | |
var | operator= ( var other) |
Assignment operator, assign from Value to Value. More... | |
local | operator= ( local other) |
Assignment operator, assign from Value to Value. More... | |
Value & | operator= (unsigned char v) |
Assignment operator, assign from unsigned char to Value. More... | |
var | operator= ( var v) |
Assignment operator, assign from unsigned char to Value. More... | |
local | operator= ( local v) |
Assignment operator, assign from unsigned char to Value. More... | |
Value & | operator= (int v) |
Assignment operator, assign from integer to Value. More... | |
var | operator= ( var v) |
Assignment operator, assign from integer to Value. More... | |
local | operator= ( local v) |
Assignment operator, assign from integer to Value. More... | |
Value & | operator= (float v) |
Assignment operator, assign from float to Value. More... | |
var | operator= ( var v) |
Assignment operator, assign from float to Value. More... | |
local | operator= ( local v) |
Assignment operator, assign from float to Value. More... | |
Value & | operator= (double v) |
Assignment operator, assign from double to Value. More... | |
var | operator= ( var v) |
Assignment operator, assign from double to Value. More... | |
local | operator= ( local v) |
Assignment operator, assign from double to Value. More... | |
Value & | operator= (bool v) |
Assignment operator, assign from bool to Value. More... | |
var | operator= ( var v) |
Assignment operator, assign from bool to Value. More... | |
local | operator= ( local v) |
Assignment operator, assign from bool to Value. More... | |
Value & | operator= (const char *v) |
Assignment operator, assign from char* to Value. More... | |
var | operator= ( var v) |
Assignment operator, assign from char* to Value. More... | |
local | operator= ( local v) |
Assignment operator, assign from char* to Value. More... | |
Value & | operator= (const std::string &v) |
Assignment operator, assign from string to Value. More... | |
var | operator= ( var v) |
Assignment operator, assign from string to Value. More... | |
local | operator= ( local v) |
Assignment operator, assign from string to Value. More... | |
Value & | operator= (const ValueVector &v) |
Assignment operator, assign from ValueVector to Value. More... | |
var | operator= ( var v) |
Assignment operator, assign from ValueVector to Value. More... | |
local | operator= ( local v) |
Assignment operator, assign from ValueVector to Value. More... | |
Value & | operator= (ValueVector &&v) |
Assignment operator, assign from ValueVector to Value. More... | |
var | operator= ( var v) |
Assignment operator, assign from ValueVector to Value. More... | |
local | operator= ( local v) |
Assignment operator, assign from ValueVector to Value. More... | |
Value & | operator= (const ValueMap &v) |
Assignment operator, assign from ValueMap to Value. More... | |
var | operator= ( var v) |
Assignment operator, assign from ValueMap to Value. More... | |
local | operator= ( local v) |
Assignment operator, assign from ValueMap to Value. More... | |
Value & | operator= (ValueMap &&v) |
Assignment operator, assign from ValueMap to Value. More... | |
var | operator= ( var v) |
Assignment operator, assign from ValueMap to Value. More... | |
local | operator= ( local v) |
Assignment operator, assign from ValueMap to Value. More... | |
Value & | operator= (const ValueMapIntKey &v) |
Assignment operator, assign from ValueMapIntKey to Value. More... | |
var | operator= ( var v) |
Assignment operator, assign from ValueMapIntKey to Value. More... | |
local | operator= ( local v) |
Assignment operator, assign from ValueMapIntKey to Value. More... | |
Value & | operator= (ValueMapIntKey &&v) |
Assignment operator, assign from ValueMapIntKey to Value. More... | |
var | operator= ( var v) |
Assignment operator, assign from ValueMapIntKey to Value. More... | |
local | operator= ( local v) |
Assignment operator, assign from ValueMapIntKey to Value. More... | |
bool | operator!= (const Value &v) |
!= operator overloading More... | |
var | operator!= ( var v) |
!= operator overloading More... | |
local | operator!= ( local v) |
!= operator overloading More... | |
bool | operator!= (const Value &v) const |
!= operator overloading More... | |
var | operator!= ( var v) |
!= operator overloading More... | |
local | operator!= ( local v) |
!= operator overloading More... | |
bool | operator== (const Value &v) |
== operator overloading More... | |
var | operator== ( var v) |
== operator overloading More... | |
local | operator== ( local v) |
== operator overloading More... | |
bool | operator== (const Value &v) const |
== operator overloading More... | |
var | operator== ( var v) |
== operator overloading More... | |
local | operator== ( local v) |
== operator overloading More... | |
unsigned char | asByte () const |
Gets as a byte value. More... | |
int | asInt () const |
Gets as an integer value. More... | |
float | asFloat () const |
Gets as a float value. More... | |
double | asDouble () const |
Gets as a double value. More... | |
bool | asBool () const |
Gets as a bool value. More... | |
std::string | asString () const |
Gets as a string value. More... | |
ValueVector & | asValueVector () |
Gets as a ValueVector reference. More... | |
const ValueVector & | asValueVector () const |
Gets as a const ValueVector reference. More... | |
ValueMap & | asValueMap () |
Gets as a ValueMap reference. More... | |
var | asValueMap () |
Gets as a ValueMap reference. More... | |
local | asValueMap () |
Gets as a ValueMap reference. More... | |
const ValueMap & | asValueMap () const |
Gets as a const ValueMap reference. More... | |
var | asValueMap () |
Gets as a const ValueMap reference. More... | |
local | asValueMap () |
Gets as a const ValueMap reference. More... | |
ValueMapIntKey & | asIntKeyMap () |
Gets as a ValueMapIntKey reference. More... | |
var | asIntKeyMap () |
Gets as a ValueMapIntKey reference. More... | |
local | asIntKeyMap () |
Gets as a ValueMapIntKey reference. More... | |
const ValueMapIntKey & | asIntKeyMap () const |
Gets as a const ValueMapIntKey reference. More... | |
local | asIntKeyMap () |
Gets as a const ValueMapIntKey reference. More... | |
bool | isNull () const |
Checks if the Value is null. More... | |
Type | getType () const |
Gets the value type. More... | |
std::string | getDescription () const |
Gets the description of the class. More... | |
local | getDescription () |
Gets the description of the class. More... | |
Static Public Attributes | |
static const Value | Null |
A predefined Value that has not value. More... | |
var | Null |
A predefined Value that has not value. More... | |
local | Null |
A predefined Value that has not value. More... | |
|
strong |
|
strong |
|
strong |
Value | ( | ) |
Default constructor.
var Value | ( | ) |
Default constructor.
local Value | ( | ) |
Default constructor.
|
explicit |
Create a Value by a char pointer.
It will copy the chars internally.
|
explicit |
Create a Value by a char pointer.
It will copy the chars internally.
|
explicit |
Create a Value by a ValueVector object.
|
explicit |
Create a Value by a ValueVector object.
It will use std::move internally.
|
explicit |
Create a Value by a ValueVector object.
It will use std::move internally.
|
explicit |
Create a Value by a ValueVector object.
It will use std::move internally.
Create a Value by a ValueMap object.
It will use std::move internally.
|
explicit |
Create a Value by a ValueMap object.
It will use std::move internally.
|
explicit |
Create a Value by a ValueMapIntKey object.
|
explicit |
Create a Value by a ValueMapIntKey object.
It will use std::move internally.
|
explicit |
Create a Value by a ValueMapIntKey object.
It will use std::move internally.
|
explicit |
Create a Value by a ValueMapIntKey object.
It will use std::move internally.
~Value | ( | ) |
Destructor.
var ~Value | ( | ) |
Destructor.
local ~Value | ( | ) |
Destructor.
bool asBool | ( | ) | const |
Gets as a bool value.
Will convert to bool if possible, or will trigger assert error.
var asBool | ( | ) |
Gets as a bool value.
Will convert to bool if possible, or will trigger assert error.
local asBool | ( | ) |
Gets as a bool value.
Will convert to bool if possible, or will trigger assert error.
unsigned char asByte | ( | ) | const |
Gets as a byte value.
Will convert to unsigned char if possible, or will trigger assert error.
var asByte | ( | ) |
Gets as a byte value.
Will convert to unsigned char if possible, or will trigger assert error.
local asByte | ( | ) |
Gets as a byte value.
Will convert to unsigned char if possible, or will trigger assert error.
double asDouble | ( | ) | const |
Gets as a double value.
Will convert to double if possible, or will trigger assert error.
var asDouble | ( | ) |
Gets as a double value.
Will convert to double if possible, or will trigger assert error.
local asDouble | ( | ) |
Gets as a double value.
Will convert to double if possible, or will trigger assert error.
float asFloat | ( | ) | const |
Gets as a float value.
Will convert to float if possible, or will trigger assert error.
var asFloat | ( | ) |
Gets as a float value.
Will convert to float if possible, or will trigger assert error.
local asFloat | ( | ) |
Gets as a float value.
Will convert to float if possible, or will trigger assert error.
int asInt | ( | ) | const |
Gets as an integer value.
Will convert to integer if possible, or will trigger assert error.
var asInt | ( | ) |
Gets as an integer value.
Will convert to integer if possible, or will trigger assert error.
local asInt | ( | ) |
Gets as an integer value.
Will convert to integer if possible, or will trigger assert error.
ValueMapIntKey& asIntKeyMap | ( | ) |
Gets as a ValueMapIntKey reference.
Will convert to ValueMapIntKey if possible, or will trigger assert error.
var asIntKeyMap | ( | ) |
Gets as a ValueMapIntKey reference.
Will convert to ValueMapIntKey if possible, or will trigger assert error.
local asIntKeyMap | ( | ) |
Gets as a ValueMapIntKey reference.
Will convert to ValueMapIntKey if possible, or will trigger assert error.
const ValueMapIntKey& asIntKeyMap | ( | ) | const |
Gets as a const ValueMapIntKey reference.
Will convert to ValueMapIntKey if possible, or will trigger assert error.
var asIntKeyMap | ( | ) |
Gets as a const ValueMapIntKey reference.
Will convert to ValueMapIntKey if possible, or will trigger assert error.
local asIntKeyMap | ( | ) |
Gets as a const ValueMapIntKey reference.
Will convert to ValueMapIntKey if possible, or will trigger assert error.
std::string asString | ( | ) | const |
Gets as a string value.
Will convert to string if possible, or will trigger assert error.
var asString | ( | ) |
Gets as a string value.
Will convert to string if possible, or will trigger assert error.
local asString | ( | ) |
Gets as a string value.
Will convert to string if possible, or will trigger assert error.
ValueMap& asValueMap | ( | ) |
Gets as a ValueMap reference.
Will convert to ValueMap if possible, or will trigger assert error.
var asValueMap | ( | ) |
Gets as a ValueMap reference.
Will convert to ValueMap if possible, or will trigger assert error.
local asValueMap | ( | ) |
Gets as a ValueMap reference.
Will convert to ValueMap if possible, or will trigger assert error.
const ValueMap& asValueMap | ( | ) | const |
Gets as a const ValueMap reference.
Will convert to ValueMap if possible, or will trigger assert error.
var asValueMap | ( | ) |
Gets as a const ValueMap reference.
Will convert to ValueMap if possible, or will trigger assert error.
local asValueMap | ( | ) |
Gets as a const ValueMap reference.
Will convert to ValueMap if possible, or will trigger assert error.
ValueVector& asValueVector | ( | ) |
Gets as a ValueVector reference.
Will convert to ValueVector if possible, or will trigger assert error.
var asValueVector | ( | ) |
Gets as a ValueVector reference.
Will convert to ValueVector if possible, or will trigger assert error.
local asValueVector | ( | ) |
Gets as a ValueVector reference.
Will convert to ValueVector if possible, or will trigger assert error.
const ValueVector& asValueVector | ( | ) | const |
Gets as a const ValueVector reference.
Will convert to ValueVector if possible, or will trigger assert error.
var asValueVector | ( | ) |
Gets as a const ValueVector reference.
Will convert to ValueVector if possible, or will trigger assert error.
local asValueVector | ( | ) |
Gets as a const ValueVector reference.
Will convert to ValueVector if possible, or will trigger assert error.
std::string getDescription | ( | ) | const |
Gets the description of the class.
var getDescription | ( | ) |
Gets the description of the class.
local getDescription | ( | ) |
Gets the description of the class.
|
inline |
Gets the value type.
|
inline |
Gets the value type.
|
inline |
Gets the value type.
|
inline |
|
inline |
bool operator!= | ( | const Value & | v | ) |
!= operator overloading
bool operator!= | ( | var | v | ) |
!= operator overloading
bool operator!= | ( | local | v | ) |
!= operator overloading
bool operator!= | ( | const Value & | v | ) | const |
!= operator overloading
bool operator!= | ( | var | v | ) |
!= operator overloading
bool operator!= | ( | local | v | ) |
!= operator overloading
Value& operator= | ( | var | other | ) |
Value& operator= | ( | local | other | ) |
Value& operator= | ( | const ValueVector & | v | ) |
Assignment operator, assign from ValueVector to Value.
Value& operator= | ( | ValueVector && | v | ) |
Assignment operator, assign from ValueVector to Value.
Assignment operator, assign from ValueMap to Value.
It will use std::move internally.
Value& operator= | ( | var | v | ) |
Assignment operator, assign from ValueMap to Value.
It will use std::move internally.
Value& operator= | ( | local | v | ) |
Assignment operator, assign from ValueMap to Value.
It will use std::move internally.
Value& operator= | ( | const ValueMapIntKey & | v | ) |
Assignment operator, assign from ValueMapIntKey to Value.
Value& operator= | ( | ValueMapIntKey && | v | ) |
Assignment operator, assign from ValueMapIntKey to Value.
It will use std::move internally.
Value& operator= | ( | var | v | ) |
Assignment operator, assign from ValueMapIntKey to Value.
It will use std::move internally.
Value& operator= | ( | local | v | ) |
Assignment operator, assign from ValueMapIntKey to Value.
It will use std::move internally.
bool operator== | ( | const Value & | v | ) |
== operator overloading
bool operator== | ( | var | v | ) |
== operator overloading
bool operator== | ( | local | v | ) |
== operator overloading
bool operator== | ( | const Value & | v | ) | const |
== operator overloading
bool operator== | ( | var | v | ) |
== operator overloading
bool operator== | ( | local | v | ) |
== operator overloading
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 |
|
static |
A predefined Value that has not value.
|
static |
A predefined Value that has not value.
std::string* strVal |
var strVal |
local strVal |
ValueVector* vectorVal |
var vectorVal |
local vectorVal |