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  

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(const ValueRef &ref)  

No documentation available

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

Assign new value to referenced value.

const ValueRef & operator=(const ValueRef &v) const  

Assign new value to referenced value.

const ValueRef & operator=(Value::Bool n) const  

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.

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

Assign new string to referenced value.

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

Assign new user data to referenced value.

const ValueRef & operator=(QObject *obj) const  

Assign a wrapped QObject to reference.

Valid XHTML 1.0 StrictGenerated by diaxen on Sun Jan 8 22:46:02 2012 using MkDoc