ReFRACtor
register_lua.cc File Reference
#include "register_lua.h"
#include <iostream>
#include <sstream>
#include "unit.h"
+ Include dependency graph for register_lua.cc:

Go to the source code of this file.

Namespaces

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

Typedefs

typedef void(std::vector< std::string >::* pbt1) (const std::vector< std::string >::value_type &)
 
typedef void(std::vector< double >::* pbt2) (const std::vector< double >::value_type &)
 
typedef void(std::vector< int >::* pbt3) (const std::vector< int >::value_type &)
 

Functions

 def (luabind::constructor<>()) .def("size"
 
&std::vector< std::string >::size def ("push_back",((pbt1) &std::vector< std::string >::push_back)) .def("value"
 
&std::vector< std::string >::size &string_value def ("__tostring", &string_vector_tostring) .def(luabind
 Declare Unit registration here since there are template expansion difficulties doing it inside the Unit .cc file itself. More...
 
double double_value (const std::vector< double > &Vec, int index)
 
std::string double_vector_tostring (const std::vector< double > &Vec)
 
int int_value (const std::vector< int > &Vec, int index)
 
std::string int_vector_tostring (const std::vector< int > &Vec)
 
int luaopen_librefractor (lua_State *ls)
 
std::string string_value (const std::vector< std::string > &Vec, int index)
 
std::string string_vector_tostring (const std::vector< std::string > &Vec)
 Here are some registrations that do not really belong anywhere else. More...
 

Typedef Documentation

◆ pbt1

typedef void(std::vector<std::string>::* pbt1) (const std::vector< std::string >::value_type &)

Definition at line 52 of file register_lua.cc.

◆ pbt2

typedef void(std::vector<double>::* pbt2) (const std::vector< double >::value_type &)

Definition at line 53 of file register_lua.cc.

◆ pbt3

typedef void(std::vector<int>::* pbt3) (const std::vector< int >::value_type &)

Definition at line 54 of file register_lua.cc.

Function Documentation

◆ def() [1/3]

def ( luabind::constructor<>  ())

◆ def() [2/3]

& std::vector<std::string>::size def ( "push_back"  ,
((pbt1) &std::vector< std::string >::push_back)   
)

◆ def() [3/3]

& std::vector<std::string>::size & string_value def ( "__tostring"  ,
string_vector_tostring 
)

Declare Unit registration here since there are template expansion difficulties doing it inside the Unit .cc file itself.

Place all the classes that have registered with Lua into the given instance of Lua.

Definition at line 61 of file register_lua.cc.

◆ double_value()

double double_value ( const std::vector< double > &  Vec,
int  index 
)

Definition at line 43 of file register_lua.cc.

◆ double_vector_tostring()

std::string double_vector_tostring ( const std::vector< double > &  Vec)

Definition at line 21 of file register_lua.cc.

◆ int_value()

int int_value ( const std::vector< int > &  Vec,
int  index 
)

Definition at line 47 of file register_lua.cc.

◆ int_vector_tostring()

std::string int_vector_tostring ( const std::vector< int > &  Vec)

Definition at line 30 of file register_lua.cc.

◆ luaopen_librefractor()

int luaopen_librefractor ( lua_State *  ls)

Definition at line 341 of file register_lua.cc.

◆ string_value()

std::string string_value ( const std::vector< std::string > &  Vec,
int  index 
)

Definition at line 39 of file register_lua.cc.

◆ string_vector_tostring()

std::string string_vector_tostring ( const std::vector< std::string > &  Vec)

Here are some registrations that do not really belong anywhere else.

Definition at line 12 of file register_lua.cc.


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