|
QLua
Lua-Qt bindings
|
QArgConstructor implementation for QList<T> type.
More...
#include <LuaArguments.h>


Public Member Functions | |
| QGenericArgument | Create (lua_State *L, int idx) const |
Copy Lua value in table format from Lua stack to QList<T> data member then create QGenericArgument referencing the data member. | |
| ListQArgConstructor * | Clone () const |
| Make copy through copy constructor. | |
QArgConstructor implementation for QList<T> type.
| QGenericArgument qlua::ListQArgConstructor< T >::Create | ( | lua_State * | L, |
| int | idx | ||
| ) | const [inline, virtual] |
Copy Lua value in table format from Lua stack to QList<T> data member then create QGenericArgument referencing the data member.
The element type can be any of:
int short float double A QList is generated by iterating over the table's values and converting each element to the requested numeric type. | L | pointer to Lua stack |
| idx | position of value on the Lua stack |
data field points to a private data member of this class' instance Implements qlua::QArgConstructor.
1.7.4