ReFRACtor
register_lua.h File Reference
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
#include <luabind/luabind.hpp>
#include <luabind/tag_function.hpp>
#include <boost/function.hpp>
#include <vector>
#include <map>
#include <boost/shared_ptr.hpp>
#include "lua_state.h"
+ Include dependency graph for register_lua.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FullPhysics::RegisterLua
 This class handles the registration of luabind class wrappers with Lua. More...
 

Namespaces

 FullPhysics
 Contains classes to abstract away details in various Spurr Radiative Transfer software.
 

Macros

#define REGISTER_LUA_CLASS(X)
 
#define REGISTER_LUA_CLASS_NAME(X, Y)
 
#define REGISTER_LUA_CLASS_NAME_WITH_GENERIC_OBJECT_BASE(X, Y)
 
#define REGISTER_LUA_DERIVED_CLASS(X, Y)
 
#define REGISTER_LUA_END()   ]; } }
 
#define REGISTER_LUA_LIST(X)   void register_lua_##X(lua_State*); register_lua_##X(ls)
 

Macro Definition Documentation

◆ REGISTER_LUA_CLASS

#define REGISTER_LUA_CLASS (   X)
Value:
namespace FullPhysics { \
void register_lua_##X(lua_State *ls) { \
LuabindObject::base_bridge.push_back(boost::shared_ptr<BridgeLuabindAndGenericBase>(new BridgeLuabindAndGeneric< X >)); \
luabind::module(ls) [ luabind::class_< X,boost::shared_ptr< X > >(#X) \
.def("__tostring", &X::print_to_string)
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1
def(luabind::constructor< int >()) .def("rows"

Definition at line 116 of file register_lua.h.

◆ REGISTER_LUA_CLASS_NAME

#define REGISTER_LUA_CLASS_NAME (   X,
 
)
Value:
namespace FullPhysics { \
void register_lua_##Y(lua_State *ls) { \
luabind::module(ls) [ luabind::class_< X,boost::shared_ptr< X > >(#Y)
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1

Definition at line 129 of file register_lua.h.

◆ REGISTER_LUA_CLASS_NAME_WITH_GENERIC_OBJECT_BASE

#define REGISTER_LUA_CLASS_NAME_WITH_GENERIC_OBJECT_BASE (   X,
 
)
Value:
namespace FullPhysics { \
void register_lua_##Y(lua_State *ls) { \
LuabindObject::base_bridge.push_back(boost::shared_ptr<BridgeLuabindAndGenericBase>(new BridgeLuabindAndGeneric< X >)); \
luabind::module(ls) [ luabind::class_< X,boost::shared_ptr< X > >(#Y)
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1

Definition at line 123 of file register_lua.h.

◆ REGISTER_LUA_DERIVED_CLASS

#define REGISTER_LUA_DERIVED_CLASS (   X,
 
)
Value:
namespace FullPhysics { \
void register_lua_##X(lua_State *ls) { \
LuabindObject::base_bridge.push_back(boost::shared_ptr<BridgeLuabindAndGenericBase>(new BridgeLuabindAndGeneric< Y >)); \
luabind::module(ls) [ luabind::class_<X,Y,boost::shared_ptr<Y> >(#X)
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1

Definition at line 136 of file register_lua.h.

◆ REGISTER_LUA_END

#define REGISTER_LUA_END ( )    ]; } }

Definition at line 134 of file register_lua.h.

◆ REGISTER_LUA_LIST

#define REGISTER_LUA_LIST (   X)    void register_lua_##X(lua_State*); register_lua_##X(ls)

Definition at line 112 of file register_lua.h.


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