Cutelee 6.2.0
ForNode Class Reference
Inheritance diagram for ForNode:

Public Types

enum  Reversed { IsNotReversed , IsReversed }
 

Public Member Functions

 ForNode (const QStringList &loopVars, const FilterExpression &fe, int reversed, QObject *parent={})
 
void render (OutputStream *stream, Context *c) const override
 
void setEmptyList (const NodeList &emptyList)
 
void setLoopList (const NodeList &loopNodeList)
 
- Public Member Functions inherited from Cutelee::Node
 Node (QObject *parent={})
 
 ~Node () override
 

Additional Inherited Members

- Protected Member Functions inherited from Cutelee::Node
TemplateImpl * containerTemplate () const
 
void streamValueInContext (OutputStream *stream, const QVariant &input, Cutelee::Context *c) const
 

Detailed Description

Definition at line 37 of file for.h.

Member Enumeration Documentation

◆ Reversed

enum ForNode::Reversed

Definition at line 41 of file for.h.

Constructor & Destructor Documentation

◆ ForNode()

ForNode::ForNode ( const QStringList & loopVars,
const FilterExpression & fe,
int reversed,
QObject * parent = {} )

Definition at line 92 of file for.cpp.

Member Function Documentation

◆ render()

void ForNode::render ( OutputStream * stream,
Context * c ) const
overridevirtual

Reimplement this to render the template in the Context c.

This will also involve calling render on and child nodes.

Implements Cutelee::Node.

Definition at line 132 of file for.cpp.

References Cutelee::Context::insert(), Cutelee::Context::lookup(), Cutelee::Context::pop(), Cutelee::Context::push(), and Cutelee::FilterExpression::resolve().

◆ setEmptyList()

void ForNode::setEmptyList ( const NodeList & emptyList)

Definition at line 104 of file for.cpp.

◆ setLoopList()

void ForNode::setLoopList ( const NodeList & loopNodeList)

Definition at line 99 of file for.cpp.