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