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
- 24 members inherited from UserData
Types
Functions
- QLinkedListProxy()
- QLinkedListProxy(Container &list)
- virtual Ref<Iterator> new_iterator(State *ls)
- void set_container(Container *list)
- virtual bool support(ValueBase::Operation c) const
Members detail
Create a QListProxy object with no attached container
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
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.
typedef Ref<QLinkedListProxy, QLinkedListProxy> ptr
Shortcut for Ref smart pointer class to QLinkedListProxy type provided for convenience
Attach or detach container. argument may be NULL