|
xoreos
0.0.5
|
#include <variable.h>

Public Member Functions | |
| Variable (Type type, const Common::UString &exactType="") | |
| Variable (bool value) | |
| Variable (int32 value) | |
| Variable (float value) | |
| Variable (const char *value) | |
| Variable (const Common::UString &value) | |
| Variable (const TableRef &value) | |
| Variable (const FunctionRef &value) | |
| Variable (void *value, const Common::UString &exactType) | |
| Variable (const Variable &var) | |
| ~Variable () | |
| void | setType (Type type, const Common::UString &exactType="") |
| Variable & | operator= (const Variable &var) |
| Variable & | operator= (bool value) |
| Variable & | operator= (int32 value) |
| Variable & | operator= (float value) |
| Variable & | operator= (const char *value) |
| Variable & | operator= (const Common::UString &value) |
| Variable & | operator= (const TableRef &value) |
| Variable & | operator= (const FunctionRef &value) |
| Variable & | operator= (void *value) |
| bool | operator== (const Variable &var) const |
| bool | operator!= (const Variable &var) const |
| Type | getType () const |
| const Common::UString & | getExactType () const |
| bool | getBool () const |
| int32 | getInt () const |
| float | getFloat () const |
| Common::UString & | getString () |
| const Common::UString & | getString () const |
| TableRef & | getTable () |
| const TableRef & | getTable () const |
| const FunctionRef & | getFunction () const |
| void * | getRawUserType () const |
| template<typename T > | |
| T * | getUserType () const |
Private Attributes | |
| Type | _type |
| Common::UString | _exactType |
| union { | |
| bool _bool | |
| float _float | |
| Common::UString * _string | |
| TableRef * _table | |
| FunctionRef * _function | |
| void * _data | |
| } | _value |
Definition at line 36 of file variable.h.
| Aurora::Lua::Variable::Variable | ( | Type | type, |
| const Common::UString & | exactType = "" |
||
| ) |
Definition at line 35 of file variable.cpp.
References setType().

| Aurora::Lua::Variable::Variable | ( | bool | value | ) |
Definition at line 39 of file variable.cpp.
References Aurora::Lua::kTypeBoolean, and setType().

| Aurora::Lua::Variable::Variable | ( | int32 | value | ) |
Definition at line 44 of file variable.cpp.
References Aurora::Lua::kTypeNumber, and setType().

| Aurora::Lua::Variable::Variable | ( | float | value | ) |
Definition at line 49 of file variable.cpp.
References Aurora::Lua::kTypeNumber, and setType().

| Aurora::Lua::Variable::Variable | ( | const char * | value | ) |
Definition at line 54 of file variable.cpp.
References Aurora::Lua::kTypeString, and setType().

| Aurora::Lua::Variable::Variable | ( | const Common::UString & | value | ) |
Definition at line 59 of file variable.cpp.
References Aurora::Lua::kTypeString, and setType().

| Aurora::Lua::Variable::Variable | ( | const TableRef & | value | ) |
Definition at line 64 of file variable.cpp.
References Aurora::Lua::kTypeTable, and setType().

| Aurora::Lua::Variable::Variable | ( | const FunctionRef & | value | ) |
Definition at line 69 of file variable.cpp.
References Aurora::Lua::kTypeFunction, and setType().

| Aurora::Lua::Variable::Variable | ( | void * | value, |
| const Common::UString & | exactType | ||
| ) |
Definition at line 74 of file variable.cpp.
References Common::UString::empty(), Aurora::Lua::kTypeUserType, and setType().

| Aurora::Lua::Variable::Variable | ( | const Variable & | var | ) |
Definition at line 81 of file variable.cpp.
| Aurora::Lua::Variable::~Variable | ( | ) |
Definition at line 85 of file variable.cpp.
References Aurora::Lua::kTypeNone, and setType().

| bool Aurora::Lua::Variable::getBool | ( | ) | const |
Definition at line 287 of file variable.cpp.
References _type, _value, and Aurora::Lua::kTypeBoolean.
Referenced by Aurora::Lua::TableRef::getBooleanAt(), and Aurora::Lua::Stack::pushVariable().

| const Common::UString & Aurora::Lua::Variable::getExactType | ( | ) | const |
Definition at line 283 of file variable.cpp.
References _exactType.
Referenced by Aurora::Lua::Stack::pushVariable().

| float Aurora::Lua::Variable::getFloat | ( | ) | const |
Definition at line 303 of file variable.cpp.
References _type, _value, and Aurora::Lua::kTypeNumber.
Referenced by Aurora::Lua::TableRef::getFloatAt(), and Aurora::Lua::Stack::pushVariable().

| const FunctionRef & Aurora::Lua::Variable::getFunction | ( | ) | const |
Definition at line 343 of file variable.cpp.
References _type, _value, and Aurora::Lua::kTypeFunction.
Referenced by Aurora::Lua::TableRef::getFunctionAt(), Aurora::Lua::ScriptManager::getGlobalFunction(), and Aurora::Lua::Stack::pushVariable().

| int32 Aurora::Lua::Variable::getInt | ( | ) | const |
Definition at line 295 of file variable.cpp.
References _type, _value, and Aurora::Lua::kTypeNumber.
Referenced by Aurora::Lua::TableRef::getIntAt().

| void * Aurora::Lua::Variable::getRawUserType | ( | ) | const |
Definition at line 351 of file variable.cpp.
References _type, _value, and Aurora::Lua::kTypeUserType.
Referenced by Aurora::Lua::getRawCppObjectFromVariable(), Aurora::Lua::TableRef::getRawUserTypeAt(), getUserType(), and Aurora::Lua::Stack::pushVariable().

| Common::UString & Aurora::Lua::Variable::getString | ( | ) |
Definition at line 319 of file variable.cpp.
References _type, _value, and Aurora::Lua::kTypeString.
Referenced by Aurora::Lua::TableRef::getStringAt(), and Aurora::Lua::Stack::pushVariable().

| const Common::UString & Aurora::Lua::Variable::getString | ( | ) | const |
Definition at line 311 of file variable.cpp.
References _type, _value, and Aurora::Lua::kTypeString.
| TableRef & Aurora::Lua::Variable::getTable | ( | ) |
Definition at line 327 of file variable.cpp.
References _type, _value, and Aurora::Lua::kTypeTable.
Referenced by Aurora::Lua::ScriptManager::getGlobalTable(), Aurora::Lua::getRawCppObjectFromVariable(), Aurora::Lua::TableRef::getTableAt(), and Aurora::Lua::Stack::pushVariable().

| const TableRef & Aurora::Lua::Variable::getTable | ( | ) | const |
Definition at line 335 of file variable.cpp.
References _type, _value, and Aurora::Lua::kTypeTable.
| Type Aurora::Lua::Variable::getType | ( | ) | const |
Definition at line 279 of file variable.cpp.
References _type.
Referenced by Aurora::Lua::getRawCppObjectFromVariable(), and Aurora::Lua::Stack::pushVariable().

|
inline |
Definition at line 97 of file variable.h.
References getRawUserType().

| bool Aurora::Lua::Variable::operator!= | ( | const Variable & | var | ) | const |
Definition at line 275 of file variable.cpp.
Definition at line 148 of file variable.cpp.
References _exactType, _function, _string, _table, _type, _value, Aurora::Lua::kTypeFunction, Aurora::Lua::kTypeString, Aurora::Lua::kTypeTable, and setType().

| Variable & Aurora::Lua::Variable::operator= | ( | bool | value | ) |
Definition at line 173 of file variable.cpp.
References _type, _value, and Aurora::Lua::kTypeBoolean.
Definition at line 182 of file variable.cpp.
References _type, _value, and Aurora::Lua::kTypeNumber.
| Variable & Aurora::Lua::Variable::operator= | ( | float | value | ) |
Definition at line 191 of file variable.cpp.
References _type, _value, and Aurora::Lua::kTypeNumber.
| Variable & Aurora::Lua::Variable::operator= | ( | const char * | value | ) |
Definition at line 200 of file variable.cpp.
References _type, _value, and Aurora::Lua::kTypeString.
| Variable & Aurora::Lua::Variable::operator= | ( | const Common::UString & | value | ) |
Definition at line 209 of file variable.cpp.
References _type, _value, and Aurora::Lua::kTypeString.
Definition at line 218 of file variable.cpp.
References _exactType, _type, _value, and Aurora::Lua::kTypeTable.
| Variable & Aurora::Lua::Variable::operator= | ( | const FunctionRef & | value | ) |
Definition at line 228 of file variable.cpp.
References _type, _value, and Aurora::Lua::kTypeFunction.
| Variable & Aurora::Lua::Variable::operator= | ( | void * | value | ) |
Definition at line 237 of file variable.cpp.
References _type, _value, and Aurora::Lua::kTypeUserType.
| bool Aurora::Lua::Variable::operator== | ( | const Variable & | var | ) | const |
Definition at line 246 of file variable.cpp.
References _bool, _data, _float, _string, _type, _value, Aurora::Lua::kTypeBoolean, Aurora::Lua::kTypeFunction, Aurora::Lua::kTypeNil, Aurora::Lua::kTypeNumber, Aurora::Lua::kTypeString, Aurora::Lua::kTypeTable, and Aurora::Lua::kTypeUserType.
| void Aurora::Lua::Variable::setType | ( | Type | type, |
| const Common::UString & | exactType = "" |
||
| ) |
Definition at line 89 of file variable.cpp.
References _exactType, _type, _value, Common::UString::empty(), Aurora::Lua::kTypeBoolean, Aurora::Lua::kTypeFunction, Aurora::Lua::kTypeNil, Aurora::Lua::kTypeNone, Aurora::Lua::kTypeNumber, Aurora::Lua::kTypeString, Aurora::Lua::kTypeTable, and Aurora::Lua::kTypeUserType.
Referenced by operator=(), Variable(), and ~Variable().


| bool Aurora::Lua::Variable::_bool |
Definition at line 87 of file variable.h.
Referenced by operator==().
| void* Aurora::Lua::Variable::_data |
Definition at line 92 of file variable.h.
Referenced by operator==().
|
private |
Definition at line 84 of file variable.h.
Referenced by getExactType(), operator=(), and setType().
| float Aurora::Lua::Variable::_float |
Definition at line 88 of file variable.h.
Referenced by operator==().
| FunctionRef* Aurora::Lua::Variable::_function |
Definition at line 91 of file variable.h.
Referenced by operator=().
| Common::UString* Aurora::Lua::Variable::_string |
Definition at line 89 of file variable.h.
Referenced by operator=(), and operator==().
| TableRef* Aurora::Lua::Variable::_table |
Definition at line 90 of file variable.h.
Referenced by operator=().
|
private |
Definition at line 83 of file variable.h.
Referenced by getBool(), getFloat(), getFunction(), getInt(), getRawUserType(), getString(), getTable(), getType(), operator=(), operator==(), and setType().
| union { ... } Aurora::Lua::Variable::_value |
Referenced by getBool(), getFloat(), getFunction(), getInt(), getRawUserType(), getString(), getTable(), operator=(), operator==(), and setType().
1.8.14