|
Cutelee 6.2.0
|
A list of Nodes with some convenience API for rendering them. More...
#include <cutelee/node.h>

Public Member Functions | |
| NodeList () | |
| NodeList (const NodeList &list) | |
| NodeList (const QList< Cutelee::Node * > &list) | |
| ~NodeList () | |
| void | append (const QList< Cutelee::Node * > &nodeList) |
| void | append (Cutelee::Node *node) |
| bool | containsNonText () const |
| template<typename T> | |
| QList< T > | findChildren () |
| NodeList & | operator= (const NodeList &list) |
| void | render (OutputStream *stream, Context *c) const |
| Public Member Functions inherited from QList< Cutelee::Node * > | |
| void | append (QList< T > &&value) |
| QList< T > & | assign (InputIterator first, InputIterator last) |
| QList< T >::const_reference | at (qsizetype i) const const |
| QList< T >::reference | back () |
| QList< T >::iterator | begin () |
| qsizetype | capacity () const const |
| QList< T >::const_iterator | cbegin () const const |
| QList< T >::const_iterator | cend () const const |
| void | clear () |
| QList< T >::const_iterator | constBegin () const const |
| QList< T >::const_pointer | constData () const const |
| QList< T >::const_iterator | constEnd () const const |
| const T & | constFirst () const const |
| const T & | constLast () const const |
| bool | contains (const AT &value) const const |
| qsizetype | count () const const |
| QList< T >::const_reverse_iterator | crbegin () const const |
| QList< T >::const_reverse_iterator | crend () const const |
| QList< T >::pointer | data () |
| QList< T >::iterator | emplace (QList< T >::const_iterator before, Args &&... args) |
| QList< T >::reference | emplace_back (Args &&... args) |
| QList< T >::reference | emplaceBack (Args &&... args) |
| bool | empty () const const |
| QList< T >::iterator | end () |
| bool | endsWith (QList< T >::parameter_type value) const const |
| QList< T >::iterator | erase (QList< T >::const_iterator begin, QList< T >::const_iterator end) |
| qsizetype | erase_if (QList< T > &list, Predicate pred) |
| QList< T > & | fill (QList< T >::parameter_type value, qsizetype size) |
| T & | first () |
| QList< T >::reference | front () |
| qsizetype | indexOf (const AT &value, qsizetype from) const const |
| QList< T >::iterator | insert (QList< T >::const_iterator before, QList< T >::parameter_type value) |
| bool | isEmpty () const const |
| T & | last () |
| qsizetype | lastIndexOf (const AT &value, qsizetype from) const const |
| qsizetype | length () const const |
| qsizetype | max_size () const const |
| QList< T > | mid (qsizetype pos, qsizetype length) const const |
| void | move (qsizetype from, qsizetype to) |
| bool | operator!= (const QList< T > &other) const const |
| QList< T > | operator+ (QList< T > &&other) && |
| QList< T > & | operator+= (QList< T > &&other) |
| bool | operator< (const QList< T > &other) const const |
| QDataStream & | operator<< (QDataStream &out, const QList< T > &list) |
| bool | operator<= (const QList< T > &other) const const |
| auto | operator<=> (const QList< T > &lhs, const QList< T > &rhs) |
| QList< T > & | operator= (QList< T > &&other) |
| bool | operator== (const QList< T > &other) const const |
| bool | operator> (const QList< T > &other) const const |
| bool | operator>= (const QList< T > &other) const const |
| QDataStream & | operator>> (QDataStream &in, QList< T > &list) |
| QList< T >::reference | operator[] (qsizetype i) |
| void | pop_back () |
| void | pop_front () |
| void | prepend (QList< T >::parameter_type value) |
| void | push_back (QList< T >::parameter_type value) |
| void | push_front (QList< T >::parameter_type value) |
| size_t | qHash (const QList< T > &key, size_t seed) |
| QList< T >::reverse_iterator | rbegin () |
| void | remove (qsizetype i, qsizetype n) |
| qsizetype | removeAll (const AT &t) |
| void | removeAt (qsizetype i) |
| void | removeFirst () |
| qsizetype | removeIf (Predicate pred) |
| void | removeLast () |
| bool | removeOne (const AT &t) |
| QList< T >::reverse_iterator | rend () |
| void | replace (qsizetype i, QList< T >::parameter_type value) |
| void | reserve (qsizetype size) |
| void | resize (qsizetype size) |
| void | resizeForOverwrite (qsizetype size) |
| void | shrink_to_fit () |
| qsizetype | size () const const |
| QList< T > | sliced (qsizetype pos) const const |
| void | squeeze () |
| bool | startsWith (QList< T >::parameter_type value) const const |
| void | swap (QList< T > &other) |
| void | swapItemsAt (qsizetype i, qsizetype j) |
| T | takeAt (qsizetype i) |
| QList< T >::value_type | takeFirst () |
| QList< T >::value_type | takeLast () |
| QList< T > | toList () const const |
| QList< T > | toVector () const const |
| T | value (qsizetype i) const const |
Additional Inherited Members | |
| Static Public Member Functions inherited from QList< Cutelee::Node * > | |
| QList< T > | fromList (const QList< T > &list) |
| QList< T > | fromVector (const QList< T > &list) |
| qsizetype | maxSize () |
| Public Attributes inherited from QList< Cutelee::Node * > | |
| typedef | const_pointer |
| typedef | const_reference |
| typedef | const_reverse_iterator |
| typedef | ConstIterator |
| typedef | difference_type |
| typedef | Iterator |
| typedef | parameter_type |
| typedef | pointer |
| typedef | reference |
| typedef | reverse_iterator |
| typedef | rvalue_ref |
| typedef | size_type |
| typedef | value_type |
Typically, tags which have an end tag will create and later render a list of child nodes.
This class contains API such as append and render to make creating such list easily.
The findChildren method behaves similarly to the QObject::findChildren method, returning a list of nodes of a particular type from the Node objects contained in the list (and their children).
| NodeList::NodeList | ( | ) |
Creates an empty NodeList.
Definition at line 119 of file node.cpp.
References QList< Cutelee::Node * >::QList().
Referenced by NodeList().
| NodeList::NodeList | ( | const NodeList & | list | ) |
Copy constructor.
Definition at line 121 of file node.cpp.
References NodeList(), and QList< Cutelee::Node * >::QList().
| NodeList::NodeList | ( | const QList< Cutelee::Node * > & | list | ) |
Convenience constructor
Definition at line 134 of file node.cpp.
References QList< Cutelee::Node * >::QList().
| void NodeList::append | ( | const QList< Cutelee::Node * > & | nodeList | ) |
Appends nodeList to the end of this NodeList.
Definition at line 160 of file node.cpp.
References QList< Cutelee::Node * >::QList(), and QList::append().
| void NodeList::append | ( | Cutelee::Node * | node | ) |
Appends node to the end of this NodeList.
Definition at line 149 of file node.cpp.
References QList::append().
| bool NodeList::containsNonText | ( | ) | const |
|
inline |
A recursive listing of nodes in this tree of type T.
Definition at line 190 of file node.h.
References QList< Cutelee::Node * >::QList(), QList< Cutelee::Node * >::constBegin(), QList< Cutelee::Node * >::constEnd(), QList< Cutelee::Node * >::first(), and QList< Cutelee::Node * >::last().
| void NodeList::render | ( | OutputStream * | stream, |
| Context * | c ) const |
Renders the list of Nodes in the Context c.
Definition at line 177 of file node.cpp.
References QList< Cutelee::Node * >::at(), and QList< Cutelee::Node * >::size().