ReFRACtor
FullPhysics::BridgeLuabindAndGenericBase Class Referenceabstract

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>

+ Inheritance diagram for FullPhysics::BridgeLuabindAndGenericBase:
+ Collaboration diagram for FullPhysics::BridgeLuabindAndGenericBase:

Public Member Functions

virtual ~BridgeLuabindAndGenericBase ()
 
virtual boost::shared_ptr< LuabindObjectluabind_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< GenericObjectvalue (const LuabindObject &Lobj) const =0
 Return a GenericObject if we can convert, or a null pointer if we can't. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~BridgeLuabindAndGenericBase()

virtual FullPhysics::BridgeLuabindAndGenericBase::~BridgeLuabindAndGenericBase ( )
inlinevirtual

Definition at line 24 of file luabind_object.h.

Member Function Documentation

◆ luabind_object()

virtual boost::shared_ptr<LuabindObject> FullPhysics::BridgeLuabindAndGenericBase::luabind_object ( const boost::shared_ptr< LuaState > &  Ls,
const boost::shared_ptr< GenericObject > &  Obj 
) const
pure virtual

Create a LuabindObject from the given type, or return a null pointer if we can't.

Implemented in FullPhysics::BridgeLuabindAndGeneric< T >.

◆ set_index()

virtual bool FullPhysics::BridgeLuabindAndGenericBase::set_index ( LuabindObject Lobj,
int  Vidx,
const boost::shared_ptr< GenericObject > &  Obj 
)
pure virtual

Set a value if we can. Return true if we set the value, false otherwise.

Implemented in FullPhysics::BridgeLuabindAndGeneric< T >.

◆ set_value()

virtual bool FullPhysics::BridgeLuabindAndGenericBase::set_value ( LuabindObject Lobj,
const std::string &  Vname,
const boost::shared_ptr< GenericObject > &  Obj 
)
pure virtual

Set a value if we can. Return true if we set the value, false otherwise.

Implemented in FullPhysics::BridgeLuabindAndGeneric< T >.

◆ value()

virtual boost::shared_ptr<GenericObject> FullPhysics::BridgeLuabindAndGenericBase::value ( const LuabindObject Lobj) const
pure virtual

Return a GenericObject if we can convert, or a null pointer if we can't.

Implemented in FullPhysics::BridgeLuabindAndGeneric< T >.


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

Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:12