SimpleFastOpenAtomicVisualiser
|
Interop for a variable size numeric array (vector) in Lua. More...
#include <LuaVec.h>
Public Member Functions | |
LuaVec () | |
Construct an empty vector. | |
void | read (lua_State *lua, int index) |
Read the vector from stack index index. | |
bool | readField (lua_State *lua, const char *name) |
Read the vector from a table field. | |
bool | readGlobal (lua_State *lua, const char *name) |
Read the vector from a global table field. | |
double & | operator[] (size_t i) |
size_t | size () const |
operator std::vector< double > () | |
Public Attributes | |
std::vector< double > | elements |
Interop for a variable size numeric array (vector) in Lua.
|
inline |
Construct an empty vector.
|
inline |
Read the vector from stack index index.
lua | the Lua context. |
index | the stack index. |
Read the vector from a table field.
lua | the Lua context. |
name | the field name. |
Read the vector from a global table field.
lua | the Lua context. |
name | the field name. |
|
inline |
std::vector<double> LuaVec::elements |