ReFRACtor
|
For use with python, it is useful to map all the LuabindObject that are a class defined in full physics (or derived from those classes) to and from a GenericObject. More...
#include <luabind_object.h>
Public Member Functions | |
virtual | ~BridgeLuabindAndGenericBase () |
virtual boost::shared_ptr< LuabindObject > | luabind_object (const boost::shared_ptr< LuaState > &Ls, const boost::shared_ptr< GenericObject > &Obj) const =0 |
Create a LuabindObject from the given type, or return a null pointer if we can't. More... | |
virtual bool | set_index (LuabindObject &Lobj, int Vidx, const boost::shared_ptr< GenericObject > &Obj)=0 |
Set a value if we can. Return true if we set the value, false otherwise. More... | |
virtual bool | set_value (LuabindObject &Lobj, const std::string &Vname, const boost::shared_ptr< GenericObject > &Obj)=0 |
Set a value if we can. Return true if we set the value, false otherwise. More... | |
virtual boost::shared_ptr< GenericObject > | value (const LuabindObject &Lobj) const =0 |
Return a GenericObject if we can convert, or a null pointer if we can't. More... | |
For use with python, it is useful to map all the LuabindObject that are a class defined in full physics (or derived from those classes) to and from a GenericObject.
This is pretty much pointless in C++, because you can't do anything with a GenericObject. But we have logic in the python wrappers to map a GenericObject to the most derived python object. This class is used to support this transformation in LuabindObject.
Definition at line 22 of file luabind_object.h.
|
inlinevirtual |
Definition at line 24 of file luabind_object.h.
|
pure virtual |
Create a LuabindObject from the given type, or return a null pointer if we can't.
Implemented in FullPhysics::BridgeLuabindAndGeneric< T >.
|
pure virtual |
Set a value if we can. Return true if we set the value, false otherwise.
Implemented in FullPhysics::BridgeLuabindAndGeneric< T >.
|
pure virtual |
Set a value if we can. Return true if we set the value, false otherwise.
Implemented in FullPhysics::BridgeLuabindAndGeneric< T >.
|
pure virtual |
Return a GenericObject if we can convert, or a null pointer if we can't.
Implemented in FullPhysics::BridgeLuabindAndGeneric< T >.