#include "register_lua.h"
#include <iostream>
#include <sstream>
#include "unit.h"
Go to the source code of this file.
|
| FullPhysics |
| Contains classes to abstract away details in various Spurr Radiative Transfer software.
|
|
|
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 &) |
|
|
| 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...
|
|
◆ pbt1
typedef void(std::vector<std::string>::* pbt1) (const std::vector< std::string >::value_type &) |
◆ pbt2
typedef void(std::vector<double>::* pbt2) (const std::vector< double >::value_type &) |
◆ pbt3
typedef void(std::vector<int>::* pbt3) (const std::vector< int >::value_type &) |
◆ 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 |
|
) |
| |
◆ double_vector_tostring()
std::string double_vector_tostring |
( |
const std::vector< double > & |
Vec | ) |
|
◆ int_value()
int int_value |
( |
const std::vector< int > & |
Vec, |
|
|
int |
index |
|
) |
| |
◆ int_vector_tostring()
std::string int_vector_tostring |
( |
const std::vector< int > & |
Vec | ) |
|
◆ luaopen_librefractor()
int luaopen_librefractor |
( |
lua_State * |
ls | ) |
|
◆ string_value()
std::string string_value |
( |
const std::vector< std::string > & |
Vec, |
|
|
int |
index |
|
) |
| |
◆ 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.