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) |
Definition at line 6327 of file lua_pseudo_code.cpp.
| static mixed udata::RegisterUDataType | ( | mixed | name, | |
| mixed | metatable | |||
| ) | [inline, static] |
| static mixed udata::WrapUData | ( | mixed | myudata | ) | [inline, static] |
| 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.
1.5.6