QLua
Lua-Qt bindings
Public Member Functions
qlua::ListQArgConstructor< T > Class Template Reference

QArgConstructor implementation for QList<T> type. More...

#include <LuaArguments.h>

Inheritance diagram for qlua::ListQArgConstructor< T >:
Inheritance graph
[legend]
Collaboration diagram for qlua::ListQArgConstructor< T >:
Collaboration graph
[legend]

List of all members.

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.
ListQArgConstructorClone () const
 Make copy through copy constructor.

Detailed Description

template<typename T>
class qlua::ListQArgConstructor< T >

QArgConstructor implementation for QList<T> type.


Member Function Documentation

template<typename T>
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.
    Parameters:
    Lpointer to Lua stack
    idxposition of value on the Lua stack
    Returns:
    QGenericArgument instance whose data field points to a private data member of this class' instance

Implements qlua::QArgConstructor.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Enumerator