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
- 129 members inherited from ValueBase
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
- Value(int index, const State *st)
- void cleanup()
- template void from_hash(const State *ls, const HashContainer &hash)
- template void from_hash(const State *ls, HashContainer &hash)
- template void from_list(const State *ls, const ListContainer &list)
- void init_global()
- void init_table()
- void init_thread(const Value &main)
- virtual void push_value(lua_State *st) const
- virtual Value value() const
Static functions
- static Value new_global_env(const State *ls)
- static Value new_table(const State *ls)
- static Value new_thread(const State *ls, const Value &main)
Private static function
- static int empty_fcn(lua_State *st)
Private field
- double _id
Members detail
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.
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.
This constructor is declared in QtLua/qtluavalue.hh source file, line 67.
Create a lua value copy.
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.
This constructor is declared in QtLua/qtluavalue.hh source file, line 80.
Create a string lua value.
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.
This constructor is declared in QtLua/qtluavalue.hh source file, line 87.
Create a lua userdata value.
This constructor is declared in QtLua/qtluavalue.hh source file, line 88.
Create a lua userdata value.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
This destructor is declared in QtLua/qtluavalue.hh source file, line 168.
Remove lua value from lua state registry.
This variable is declared in QtLua/qtluavalue.hh source file, line 265.
This member access is private.
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
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.
This function is declared in QtLua/qtluavalue.hh source file, line 259.
This member access is private.
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.
This function is declared in QtLua/qtluavalue.hh source file, line 112.
Create a new lua global environment value
This function is declared in QtLua/qtluavalue.hh source file, line 115.
Create a new lua table value
This function is declared in QtLua/qtluavalue.hh source file, line 118.
Create a new coroutine value with given entry point lua function.
This function is declared in QtLua/qtluavalue.hh source file, line 171.
Copy a lua value.
This function is declared in QtLua/qtluavalue.hh source file, line 173.
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.
This function is declared in QtLua/qtluavalue.hh source file, line 186.
Assign a string to lua value.
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.
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.
This function is declared in QtLua/qtluavalue.hh source file, line 196.
This function is declared in QtLua/qtluavalue.hh source file, line 202.
Assign a QObject to lua value.
See also QObject wrapping section.
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.
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.
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.
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.
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.
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.
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.
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.