2 #include <boost/foreach.hpp> 5 std::vector<boost::shared_ptr<BridgeLuabindAndGenericBase> >
8 std::vector<boost::shared_ptr<BridgeLuabindAndGenericBase> >
22 res = v->value(*
this);
35 (
const std::string& Vname,
40 if(v->set_value(*
this, Vname, V))
45 if(v->set_value(*
this, Vname, V))
48 throw Exception(
"Unrecognized type in LuabindObject::set_value");
62 if(v->set_index(*
this, Vidx, V))
67 if(v->set_index(*
this, Vidx, V))
70 throw Exception(
"Unrecognized type in LuabindObject::set_index");
88 res = v->luabind_object(Ls, Obj);
94 res = v->luabind_object(Ls, Obj);
98 throw Exception(
"Unrecognized type in LuabindObject::set_index");
static boost::shared_ptr< LuabindObject > create_luabind_object(const boost::shared_ptr< LuaState > &Ls, const boost::shared_ptr< GenericObject > &Obj)
Create a LuabindObject from a GenericObject.
void set_value(const std::string &Vname, const boost::shared_ptr< GenericObject > &V)
Set value as a GenericObject, returning true if this succeeds.
static std::vector< boost::shared_ptr< BridgeLuabindAndGenericBase > > base_bridge
Map used for mapping base classes to and from Lua and GenericObject.
This is the base of the exception hierarchy for Full Physics code.
void set_index(int Vidx, const boost::shared_ptr< GenericObject > &V)
Set value as a GenericObject, returning true if this succeeds.
Contains classes to abstract away details in various Spurr Radiative Transfer software.
boost::shared_ptr< GenericObject > value_generic_object() const
Return value as a GenericObject, or return a null pointer if we can't convert to a GenericObject...
static std::vector< boost::shared_ptr< BridgeLuabindAndGenericBase > > derived_bridge
Map used for mapping derived class to and from Lua and GenericObject.