QLinkedListProxy class reference
[Container proxies module]

Declaration  

#include <QtLua/QLinkedListProxy>

namespace QtLua {
template <typename Container> class QLinkedListProxy;
};

This class is a member of the QtLua namespace.

Description  

This template class may be used to iterate over an attached QLinkedList container object from lua script.

Containers may be attached and detached from the wrapper object to solve cases where we want to destroy the container when lua still holds references to the wrapper object. When no container is attached access will raise an error.

Members  

Inherited members  

Types  

Functions  

Members detail  

QLinkedListProxy()  

Create a QListProxy object with no attached container

QLinkedListProxy(Container &list)  

Create a QListProxy object and attach given container

typedef Ref<const QLinkedListProxy, QLinkedListProxy> const_ptr  

Shortcut for Ref smart pointer class to QLinkedListProxy type provided for convenience

virtual Ref<Iterator> new_iterator(State *ls)  

This virtual function overrides the new_iterator virtual function defined in the UserData base class.

Documentation inherited from base class:

This function may return an Iterator object used to iterate over an userdata object. The default implementation throws an error message. The UserData::support function must be reimplemented along with this function to report ValueBase::OpIterate as supported.

The return value is an Iterator based iterator object.

Shortcut for Ref smart pointer class to QLinkedListProxy type provided for convenience

void set_container(Container *list)  

Attach or detach container. argument may be NULL

virtual bool support(ValueBase::Operation c) const  

This virtual function overrides the support virtual function defined in the UserData base class.

Documentation inherited from base class:

Check given operation support.

See also ValueBase::support function.

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