#include <ugdk/script/languages/lua/luadata.h>
ugdk::script::lua::LuaData::~LuaData |
( |
| ) |
|
void ugdk::script::lua::LuaData::AddToBuffer |
( |
| ) |
|
|
virtual |
Ptr ugdk::script::lua::LuaData::Execute |
( |
const std::vector< Ptr > & |
args | ) |
|
Ptr ugdk::script::lua::LuaData::GetAttribute |
( |
Ptr |
key | ) |
|
|
virtual |
DataID ugdk::script::lua::LuaData::id |
( |
| ) |
const |
|
inline |
void ugdk::script::lua::LuaData::RemoveFromBuffer |
( |
| ) |
|
|
inlinevirtual |
Ptr ugdk::script::lua::LuaData::SetAttribute |
( |
Ptr |
key, |
|
|
Ptr |
value |
|
) |
| |
|
virtual |
void* ugdk::script::lua::LuaData::unsafe_data |
( |
| ) |
const |
|
inlinevirtual |
void ugdk::script::lua::LuaData::UnsafePopValue |
( |
| ) |
|
Unsafely sets this LuaData objects data.
WARNING: Uses the lua value on the top of the stack.
void ugdk::script::lua::LuaData::UnsafePushValue |
( |
| ) |
|
void* ugdk::script::lua::LuaData::Unwrap |
( |
const VirtualType & |
type, |
|
|
bool |
disown |
|
) |
| const |
|
overridevirtual |
bool ugdk::script::lua::LuaData::UnwrapBoolean |
( |
| ) |
const |
|
overridevirtual |
int ugdk::script::lua::LuaData::UnwrapInteger |
( |
| ) |
const |
|
overridevirtual |
List ugdk::script::lua::LuaData::UnwrapList |
( |
| ) |
const |
|
overridevirtual |
Map ugdk::script::lua::LuaData::UnwrapMap |
( |
| ) |
const |
|
overridevirtual |
double ugdk::script::lua::LuaData::UnwrapNumber |
( |
| ) |
const |
|
overridevirtual |
const char* ugdk::script::lua::LuaData::UnwrapString |
( |
| ) |
const |
|
overridevirtual |
Vector ugdk::script::lua::LuaData::UnwrapVector |
( |
| ) |
const |
|
overridevirtual |
void ugdk::script::lua::LuaData::Wrap |
( |
void * |
data, |
|
|
const VirtualType & |
type, |
|
|
bool |
disown |
|
) |
| |
|
overridevirtual |
Tries to wrap the given data with the given type.
Returns a new VirtualData::Ptr with the data wrapped upon success.
The VirtualData object returned by this method is NOT NECESSARILY the same as the one that called it. Thus a safe way to use this is like this:
VirtualData::Ptr vdata;
// ...
vdata = vdata->Wrap(...);
- Parameters
-
data | - a void pointer to the data being wrapped. |
type | - a virtual type got from TypeRegistry<T>::type(), where T is the original declarated type of the data. |
- Returns
- A shared pointer to the wrapped data.
- See also
- ugdk::script::TypeRegistry
Implements ugdk::script::VirtualData.
void ugdk::script::lua::LuaData::WrapBoolean |
( |
bool |
boolean | ) |
|
|
overridevirtual |
void ugdk::script::lua::LuaData::WrapInteger |
( |
int |
number | ) |
|
|
overridevirtual |
void ugdk::script::lua::LuaData::WrapNumber |
( |
double |
number | ) |
|
|
overridevirtual |
LangWrapper* ugdk::script::lua::LuaData::wrapper |
( |
| ) |
const |
|
inlinevirtual |
void ugdk::script::lua::LuaData::WrapString |
( |
const char * |
str | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following file:
- modules/ugdk-script/include/ugdk/script/languages/lua/luadata.h