Class __cpp_obj
Abstract type for all custom classes exposed from cpp,
exposed to lua with reference couting.
Fields
-
__cpp_obj.__tbx_classname
-
The cpp classname associated held by this object. This is an opaque value.
Metamethods
-
__cpp_obj:__gc ()
-
Garbage-collect this object -- DO NOT CALL.
Will be called by the Lua interpreter in a GC run.
-
__cpp_obj:__cpp_ref_count ()
-
extract this object reference count.
Returns:
num
refcount
-
__cpp_obj:__cpp_ownerref_count ()
-
extract the reference count of the owner of this object
Returns:
num
refcount the reference count, or nil if this object is self-owned