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 value along with a key value.

This is mainly used in the State, Value and ValueBase::iterator classes to allow modification of lua tables with the C++ square bracket operator functions.

Members  

Types  

Functions  

Static function  

  • static String type_name(ValueBase::ValueType t)

Members detail  

ValueRef(const Value &table, const Value &key)  

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(Value &&table, const Value &key)  

Construct reference with given table and key.

ValueRef(const Value &table, Value &&key)  

Construct reference with given table and key.

template <typename T> ValueRef(Value &&table, const T &key)  

Construct reference with given table and key.

ValueRef(Value &&table, Value &&key)  

Construct reference with given table and key.

ValueRef(ValueRef &&ref)  

No documentation available

ValueRef(const ValueRef &ref)  

No documentation available

~ValueRef()  

No documentation available

const Value & operator=(const Value &v) const  

Assign new value to referenced value.

Value operator=(ValueBase::Bool n) const  

Assign new value to referenced value.

Value operator=(double n) const  

Assign new value to referenced value.

Value operator=(float n) const  

Assign new value to referenced value.

Value operator=(int n) const  

Assign new value to referenced value.

Value operator=(unsigned int n) const  

Assign new value to referenced value.

Value operator=(const String &str) const  

Assign new value to referenced value.

Value operator=(const QString &str) const  

Assign new value to referenced value.

Value operator=(const char *str) const  

Assign new value to referenced value.

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

Assign new value to referenced value.

Value operator=(UserData *ud) const  

Assign new value to referenced value.

Value operator=(QObject *obj) const  

Assign new value to referenced value.

Value operator=(const QVariant &qv) const  

Assign new value to referenced value.

virtual Value value() const  

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

Valid XHTML 1.0 StrictGenerated by diaxen on Sat Mar 30 15:29:55 2013 using MkDoc