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.
This template class is declared in QtLua/qtluaqlinkedlistproxy.hh source file, line 47.
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
- 30 members inherited from UserData
Types
Private type
- class ProxyIterator
Functions
- QLinkedListProxy()
- QLinkedListProxy(Container &list)
- virtual Ref<Iterator> new_iterator(State *ls)
- void set_container(Container *list)
- virtual bool support(ValueBase::Operation c) const
Private function
- virtual String get_type_name() const
Private field
- Container *_linkedlist
Members detail
This constructor is declared in QtLua/qtluaqlinkedlistproxy.hh source file, line 52.
Create a QListProxy object with no attached container
This constructor is declared in QtLua/qtluaqlinkedlistproxy.hh source file, line 54.
Create a QListProxy object and attach given container
This variable is declared in QtLua/qtluaqlinkedlistproxy.hh source file, line 89.
This member access is private.
typedef Ref<const QLinkedListProxy, QLinkedListProxy> const_ptr
This typedef is declared in QTLUA_REFTYPE function like macro expansion, line 3 in QtLua/qtluaqlinkedlistproxy.hh source file, line 49.
Shortcut for Ref smart pointer class to QLinkedListProxy type provided for convenience
virtual String get_type_name() const
This virtual function is declared in QtLua/qtluaqlinkedlistproxy.hh source file, line 64.
This member access is private.
This virtual function overrides the get_type_name
virtual function defined in the UserData
base class.
Documentation inherited from base class:
This function returns an object type name. The default implementation returns the C++ object type name. This is used for error messages and pretty printing.
The return value is Pretty print object type.
This virtual function is declared in QtLua/qtluaqlinkedlistproxy.hh source file, line 59.
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
This typedef is declared in QTLUA_REFTYPE function like macro expansion, line 5 in QtLua/qtluaqlinkedlistproxy.hh source file, line 49.
Shortcut for Ref smart pointer class to QLinkedListProxy type provided for convenience
This function is declared in QtLua/qtluaqlinkedlistproxy.hh source file, line 57.
Attach or detach container. argument may be NULL