Value class reference
[Base module]

Declaration  

#include <QtLua/Value>

namespace QtLua {
class Value;
};

This class is a member of the QtLua namespace.

This class is declared in QtLua/qtluavalue.hh source file, line 47.

Description  

This class exposes a lua value to C++ code. It provides conversion functions, cast operators, access operators and standard C++ iterators.

Each Value object store its associated lua value in the lua interpreter state registry table.

See also Qt/Lua types conversion section, Iterator class, ValueBase::iterator struct and ValueBase::const_iterator struct.

Members  

Inherited members  

Functions  

  • Value()
  • Value(const State *ls)
  • Value(const Value &lv)
  • Value(const State *ls, const Value &lv)
  • Value(Value &&lv)
  • Value(const State *ls, Value &&lv)
  • Value(const State *ls, ValueBase::Bool n)
  • Value(const State *ls, float n)
  • Value(const State *ls, double n)
  • Value(const State *ls, int n)
  • Value(const State *ls, unsigned int n)
  • Value(const State *ls, const String &str)
  • Value(const State *ls, const QString &str)
  • Value(const State *ls, const char *str)
  • Value(const State *ls, const Ref<UserData> &ud)
  • Value(const State *ls, UserData *ud)
  • Value(const State *ls, QObject *obj)
  • Value(const State *ls, const QVariant &qv)
  • Value(State *ls, QObject *obj, bool delete_, bool reparent)
  • template Value(const State *ls, const QList<X> &list)
  • template Value(const State *ls, QList<X> &list)
  • template Value(const State *ls, const QVector<X> &vector)
  • template Value(const State *ls, QVector<X> &vector)
  • template Value(const State *ls, unsigned int size, const X *array)
  • template Value(const State *ls, const QHash<Key, Val> &hash)
  • template Value(const State *ls, QHash<Key, Val> &hash)
  • template Value(const State *ls, const QMap<Key, Val> &map)
  • template Value(const State *ls, QMap<Key, Val> &map)
  • ~Value()
  • Value & operator=(const Value &lv)
  • Value & operator=(Value &&lv)
  • Value & operator=(ValueBase::Bool n)
  • Value & operator=(double n)
  • Value & operator=(float n)
  • Value & operator=(int n)
  • Value & operator=(unsigned int n)
  • Value & operator=(const String &str)
  • Value & operator=(const QString &str)
  • Value & operator=(const char *str)
  • Value & operator=(const Ref<UserData> &ud)
  • Value & operator=(UserData *ud)
  • Value & operator=(QObject *obj)
  • Value & operator=(const QVariant &qv)
  • Value & operator=(double n) &&
  • Value & operator=(float n) &&
  • Value & operator=(int n) &&
  • Value & operator=(unsigned int n) &&
  • Value & operator=(const String &str) &&
  • Value & operator=(const QString &str) &&
  • Value & operator=(const char *str) &&
  • Value & operator=(const Ref<UserData> &ud) &&
  • Value & operator=(UserData *ud) &&
  • Value & operator=(QObject *obj) &&
  • Value & operator=(const QVariant &qv) &&
  • Value & operator=(ValueBase::Bool n) &&

Private functions  

Static functions  

Private static function  

Private field  

Members detail  

Value()  

This constructor is declared in QtLua/qtluavalue.hh source file, line 57.

Create a lua value object with no associated State

Value(const State *ls)  

This constructor is declared in QtLua/qtluavalue.hh source file, line 60.

Create a "nil" lua value.

Value(const Value &lv)  

This constructor is declared in QtLua/qtluavalue.hh source file, line 63.

Create a lua value copy.

Value(const State *ls, const Value &lv)  

This constructor is declared in QtLua/qtluavalue.hh source file, line 64.

Create a lua value copy.

Value(Value &&lv)  

This constructor is declared in QtLua/qtluavalue.hh source file, line 66.

Create a lua value copy.

Value(const State *ls, Value &&lv)  

This constructor is declared in QtLua/qtluavalue.hh source file, line 67.

Create a lua value copy.

Value(const State *ls, ValueBase::Bool n)  

This constructor is declared in QtLua/qtluavalue.hh source file, line 71.

Create a lua value.

Value(const State *ls, float n)  

This constructor is declared in QtLua/qtluavalue.hh source file, line 74.

Create a number lua value.

Value(const State *ls, double n)  

This constructor is declared in QtLua/qtluavalue.hh source file, line 75.

Create a number lua value.

Value(const State *ls, int n)  

This constructor is declared in QtLua/qtluavalue.hh source file, line 76.

Create a number lua value.

Value(const State *ls, unsigned int n)  

This constructor is declared in QtLua/qtluavalue.hh source file, line 77.

Create a number lua value.

Value(const State *ls, const String &str)  

This constructor is declared in QtLua/qtluavalue.hh source file, line 80.

Create a string lua value.

Value(const State *ls, const QString &str)  

This constructor is declared in QtLua/qtluavalue.hh source file, line 81.

Create a string lua value.

Value(const State *ls, const char *str)  

This constructor is declared in QtLua/qtluavalue.hh source file, line 82.

Create a string lua value.

Value(const State *ls, const Ref<UserData> &ud)  

This constructor is declared in QtLua/qtluavalue.hh source file, line 87.

Create a lua userdata value.

Value(const State *ls, UserData *ud)  

This constructor is declared in QtLua/qtluavalue.hh source file, line 88.

Create a lua userdata value.

Value(const State *ls, QObject *obj)  

This constructor is declared in QtLua/qtluavalue.hh source file, line 95.

Create a wrapped QObject lua value.

See also QObject wrapping section and Value::Value function.

Value(const State *ls, const QVariant &qv)  

This constructor is declared in QtLua/qtluavalue.hh source file, line 101.

Create a lua value from a QVariant object.

See also Qt/Lua types conversion section.

Value(State *ls, QObject *obj, bool delete_, bool reparent)  

This constructor is declared in QtLua/qtluavalue.hh source file, line 109.

Create a QObject lua value and update associated wrapper ownership flags for this QObject.

See also QObject wrapping section.

template <typename X> Value(const State *ls, const QList<X> &list)  

This template constructor is declared in QtLua/qtluavalue.hh source file, line 126.

Create a lua table indexed from 1 with elements from a QList.

See also Qt/Lua types conversion section.

template <typename X> Value(const State *ls, QList<X> &list)  

This template constructor is declared in QtLua/qtluavalue.hh source file, line 128.

Create a lua table indexed from 1 with elements from a QList.

See also Qt/Lua types conversion section.

template <typename X> Value(const State *ls, const QVector<X> &vector)  

This template constructor is declared in QtLua/qtluavalue.hh source file, line 136.

Create a lua table indexed from 1 with elements from a QVector.

See also Qt/Lua types conversion section.

template <typename X> Value(const State *ls, QVector<X> &vector)  

This template constructor is declared in QtLua/qtluavalue.hh source file, line 138.

Create a lua table indexed from 1 with elements from a QVector.

See also Qt/Lua types conversion section.

template <typename X> Value(const State *ls, unsigned int size, const X *array)  

This template constructor is declared in QtLua/qtluavalue.hh source file, line 145.

Create a lua table indexed from 1 with elements from a C array.

See also Qt/Lua types conversion section.

template <typename Key, typename Val> Value(const State *ls, const QHash<Key, Val> &hash)  

This template constructor is declared in QtLua/qtluavalue.hh source file, line 153.

Create a lua table with elements from QHash.

See also Qt/Lua types conversion section.

template <typename Key, typename Val> Value(const State *ls, QHash<Key, Val> &hash)  

This template constructor is declared in QtLua/qtluavalue.hh source file, line 155.

Create a lua table with elements from QHash.

See also Qt/Lua types conversion section.

template <typename Key, typename Val> Value(const State *ls, const QMap<Key, Val> &map)  

This template constructor is declared in QtLua/qtluavalue.hh source file, line 163.

Create a lua table with elements from QMap.

See also Qt/Lua types conversion section.

template <typename Key, typename Val> Value(const State *ls, QMap<Key, Val> &map)  

This template constructor is declared in QtLua/qtluavalue.hh source file, line 165.

Create a lua table with elements from QMap.

See also Qt/Lua types conversion section.

Value(int index, const State *st)  

This constructor is declared in QtLua/qtluavalue.hh source file, line 257.

This member access is private.

construct from value on lua stack.

~Value()  

This destructor is declared in QtLua/qtluavalue.hh source file, line 168.

Remove lua value from lua state registry.

double _id  

This variable is declared in QtLua/qtluavalue.hh source file, line 265.

This member access is private.

void cleanup()  

This function is declared in QtLua/qtluavalue.hh source file, line 254.

This member access is private.

set value to nil in registry, _st must not be NULL

static int empty_fcn(lua_State *st)  

This function is declared in QtLua/qtluavalue.hh source file, line 263.

This member access is private.

template <typename HashContainer> void from_hash(const State *ls, const HashContainer &hash)  

This template function is declared in QtLua/qtluavalue.hh source file, line 241.

This member access is private.

This functions is not implemented, its declaration prevents a common pitfall of assignment to temporary Value instead of ValueRef object.

template <typename HashContainer> void from_hash(const State *ls, HashContainer &hash)  

This template function is declared in QtLua/qtluavalue.hh source file, line 244.

This member access is private.

This functions is not implemented, its declaration prevents a common pitfall of assignment to temporary Value instead of ValueRef object.

template <typename ListContainer> void from_list(const State *ls, const ListContainer &list)  

This template function is declared in QtLua/qtluavalue.hh source file, line 247.

This member access is private.

This functions is not implemented, its declaration prevents a common pitfall of assignment to temporary Value instead of ValueRef object.

void init_global()  

This function is declared in QtLua/qtluavalue.hh source file, line 259.

This member access is private.

void init_table()  

This function is declared in QtLua/qtluavalue.hh source file, line 260.

This member access is private.

void init_thread(const Value &main)  

This function is declared in QtLua/qtluavalue.hh source file, line 261.

This member access is private.

static Value new_global_env(const State *ls)  

This function is declared in QtLua/qtluavalue.hh source file, line 112.

Create a new lua global environment value

static Value new_table(const State *ls)  

This function is declared in QtLua/qtluavalue.hh source file, line 115.

Create a new lua table value

static Value new_thread(const State *ls, const Value &main)  

This function is declared in QtLua/qtluavalue.hh source file, line 118.

Create a new coroutine value with given entry point lua function.

Value & operator=(const Value &lv)  

This function is declared in QtLua/qtluavalue.hh source file, line 171.

Copy a lua value.

Value & operator=(Value &&lv)  

This function is declared in QtLua/qtluavalue.hh source file, line 173.

Value & operator=(ValueBase::Bool n)  

This function is declared in QtLua/qtluavalue.hh source file, line 177.

Assign a boolean to lua value.

Value & operator=(double n)  

This function is declared in QtLua/qtluavalue.hh source file, line 180.

Assign a number to lua value.

Value & operator=(float n)  

This function is declared in QtLua/qtluavalue.hh source file, line 181.

Assign a number to lua value.

Value & operator=(int n)  

This function is declared in QtLua/qtluavalue.hh source file, line 182.

Assign a number to lua value.

Value & operator=(unsigned int n)  

This function is declared in QtLua/qtluavalue.hh source file, line 183.

Assign a number to lua value.

Value & operator=(const String &str)  

This function is declared in QtLua/qtluavalue.hh source file, line 186.

Assign a string to lua value.

Value & operator=(const QString &str)  

This function is declared in QtLua/qtluavalue.hh source file, line 187.

Assign a string to lua value.

Value & operator=(const char *str)  

This function is declared in QtLua/qtluavalue.hh source file, line 188.

Assign a string to lua value.

Value & operator=(const Ref<UserData> &ud)  

This function is declared in QtLua/qtluavalue.hh source file, line 195.

Assign a userdata to lua value. The value will hold a Ref reference to the UserData object which will be dropped later by the lua garbage collector.

Value & operator=(UserData *ud)  

This function is declared in QtLua/qtluavalue.hh source file, line 196.

Value & operator=(QObject *obj)  

This function is declared in QtLua/qtluavalue.hh source file, line 202.

Assign a QObject to lua value.

See also QObject wrapping section.

Value & operator=(const QVariant &qv)  

This function is declared in QtLua/qtluavalue.hh source file, line 208.

Convert a QVariant to lua value.

See also Qt/Lua types conversion section.

Value & operator=(double n) &&  

This function is declared in QtLua/qtluavalue.hh source file, line 224.

This functions is not implemented, its declaration prevents a common pitfall of assignment to temporary Value instead of ValueRef object.

Value & operator=(float n) &&  

This function is declared in QtLua/qtluavalue.hh source file, line 225.

This functions is not implemented, its declaration prevents a common pitfall of assignment to temporary Value instead of ValueRef object.

Value & operator=(int n) &&  

This function is declared in QtLua/qtluavalue.hh source file, line 226.

This functions is not implemented, its declaration prevents a common pitfall of assignment to temporary Value instead of ValueRef object.

Value & operator=(unsigned int n) &&  

This function is declared in QtLua/qtluavalue.hh source file, line 227.

This functions is not implemented, its declaration prevents a common pitfall of assignment to temporary Value instead of ValueRef object.

Value & operator=(const String &str) &&  

This function is declared in QtLua/qtluavalue.hh source file, line 229.

This functions is not implemented, its declaration prevents a common pitfall of assignment to temporary Value instead of ValueRef object.

Value & operator=(const QString &str) &&  

This function is declared in QtLua/qtluavalue.hh source file, line 230.

This functions is not implemented, its declaration prevents a common pitfall of assignment to temporary Value instead of ValueRef object.

Value & operator=(const char *str) &&  

This function is declared in QtLua/qtluavalue.hh source file, line 231.

This functions is not implemented, its declaration prevents a common pitfall of assignment to temporary Value instead of ValueRef object.

Value & operator=(const Ref<UserData> &ud) &&  

This function is declared in QtLua/qtluavalue.hh source file, line 233.

This functions is not implemented, its declaration prevents a common pitfall of assignment to temporary Value instead of ValueRef object.

Value & operator=(UserData *ud) &&  

This function is declared in QtLua/qtluavalue.hh source file, line 234.

This functions is not implemented, its declaration prevents a common pitfall of assignment to temporary Value instead of ValueRef object.

Value & operator=(QObject *obj) &&  

This function is declared in QtLua/qtluavalue.hh source file, line 235.

This functions is not implemented, its declaration prevents a common pitfall of assignment to temporary Value instead of ValueRef object.

Value & operator=(const QVariant &qv) &&  

This function is declared in QtLua/qtluavalue.hh source file, line 236.

This functions is not implemented, its declaration prevents a common pitfall of assignment to temporary Value instead of ValueRef object.

virtual void push_value(lua_State *st) const  

This virtual function is declared in QtLua/qtluavalue.hh source file, line 250.

This member access is private.

This virtual function implements the push_value pure function declared in the ValueBase base abstract class for internal purposes.

push value on lua stack.

virtual Value value() const  

This virtual function is declared in QtLua/qtluavalue.hh source file, line 251.

This member access is private.

This virtual function implements the value pure function declared in the ValueBase base abstract class for internal purposes.

Value & operator=(ValueBase::Bool n) &&  

This function is for internal use only.

This function is declared in QtLua/qtluavalue.hh source file, line 222.

This functions is not implemented, its declaration prevents a common pitfall of assignment to temporary Value instead of ValueRef object.

Valid XHTML 1.0 StrictGenerated by diaxen on Sat Mar 30 16:23:03 2013 using MkDoc