Cutelee
6.1.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 |
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 | ( | const NodeList & | list | ) |
NodeList::NodeList | ( | const QList< Cutelee::Node * > & | list | ) |
void NodeList::append | ( | const QList< Cutelee::Node * > & | nodeList | ) |
void NodeList::append | ( | Cutelee::Node * | node | ) |
bool NodeList::containsNonText | ( | ) | const |
|
inline |
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.
Referenced by AutoescapeNode::render(), FilterNode::render(), ForNode::render(), IfChangedNode::render(), IfEqualNode::render(), RangeNode::render(), SpacelessNode::render(), WithNode::render(), WithLocaleNode::render(), and BlockNode::render().