udata Class Reference

file : ../lugre/lua/udata.lua (this is just a pseudo class used for grouping global functions) More...

List of all members.

Static Public Member Functions

static mixed RegisterUDataType (mixed name, mixed metatable)
 called by c when registering a udata type
static mixed WrapUData (mixed myudata)
 called by c after creating a udata
static mixed UData_index (mixed myinstance, mixed key)
static mixed UData_newindex (mixed myinstance, mixed key, mixed value)


Detailed Description

file : ../lugre/lua/udata.lua (this is just a pseudo class used for grouping global functions)

Definition at line 6327 of file lua_pseudo_code.cpp.


Member Function Documentation

static mixed udata::RegisterUDataType ( mixed  name,
mixed  metatable 
) [inline, static]

called by c when registering a udata type

Definition at line 6330 of file lua_pseudo_code.cpp.

static mixed udata::WrapUData ( mixed  myudata  )  [inline, static]

called by c after creating a udata

Definition at line 6333 of file lua_pseudo_code.cpp.

static mixed udata::UData_index ( mixed  myinstance,
mixed  key 
) [inline, static]

instance must be the udata itself, as it should be possible to call myinstance:MethodFromC(param2,..) which expects a udata as implicit param or rewrite all functions taking udata as one of their parameters to do a lookup for key "udata" in case they get an array instance can be used as array instance can have luaclass instance created via WrapUData() (called automatically by luabind.h : CreateUData() udata has metatable udatatype (not changeable from lua) udatatype has methods udatatype get and set functions to access c membervars NO : store something in the udata besides a smartpointer ? cannot store lua types =( YES : checkudata in luabind.h anpassen, so dass es entweder udata direkt oder array-feld mit titel udata nimmt getter, first looks in instance, if nothing is found there methods.Get is used

Definition at line 6346 of file lua_pseudo_code.cpp.

static mixed udata::UData_newindex ( mixed  myinstance,
mixed  key,
mixed  value 
) [inline, static]

setter, also for setting variables with set. if the vars don't exist, use shadow but if they are readonly print an error

Definition at line 6350 of file lua_pseudo_code.cpp.


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

Generated on Fri Mar 29 05:41:10 2013 for lua by  doxygen 1.5.6