ValueRef class reference
[Base module]
Declaration
#include <QtLua/ValueRef>
namespace QtLua {
class ValueRef;
};
This class is a member of the QtLua namespace.
Description
This class acts as a reference to a lua value stored in a lua table (or userdata value). It stores two lua values: a table along with a key value.
This is mainly used in the State, Value and Value::iterator classes to allow modification of lua tables with the C++ square bracket operator functions.
Members
Inherited members
- 157 members inherited from Value
Functions
- ValueRef(const Value &table, const Value &key)
- template ValueRef(const Value &table, const T &key)
- ValueRef(const ValueRef &ref)
- const ValueRef & operator=(const Value &v) const
- const ValueRef & operator=(const ValueRef &v) const
- const ValueRef & operator=(Value::Bool n) const
- const ValueRef & operator=(double n) const
- const ValueRef & operator=(int n) const
- const ValueRef & operator=(const String &str) const
- const ValueRef & operator=(const Ref<UserData> &ud) const
- const ValueRef & operator=(QObject *obj) const
Members detail
Construct reference with given table and key.
template <typename T> ValueRef(const Value &table, const T &key)
Construct reference with given table and key.
ValueRef(const ValueRef &ref)
No documentation available
Assign new value to referenced value.
Assign new value to referenced value.
Assign new boolean to referenced value.
const ValueRef & operator=(double n) const
Assign new number to referenced value.
const ValueRef & operator=(int n) const
Assign new number to referenced value.
Assign new string to referenced value.
Assign new user data to referenced value.
Assign a wrapped QObject to reference.