Cutelee 6.1.0
RangeNode Class Reference
Inheritance diagram for RangeNode:

Public Member Functions

 RangeNode (const QString &name, const FilterExpression &startExpression, const FilterExpression &stopExpression, const FilterExpression &stepExpression={}, QObject *parent={})
 
 RangeNode (const QString &name, const FilterExpression &startExpression, const FilterExpression &stopExpression, QObject *parent={})
 
void render (OutputStream *stream, Context *c) const override
 
void setNodeList (const NodeList &list)
 
- 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 36 of file range.h.

Constructor & Destructor Documentation

◆ RangeNode() [1/2]

RangeNode::RangeNode ( const QString & name,
const FilterExpression & startExpression,
const FilterExpression & stopExpression,
QObject * parent = {} )

Definition at line 81 of file range.cpp.

◆ RangeNode() [2/2]

RangeNode::RangeNode ( const QString & name,
const FilterExpression & startExpression,
const FilterExpression & stopExpression,
const FilterExpression & stepExpression = {},
QObject * parent = {} )

Definition at line 89 of file range.cpp.

Member Function Documentation

◆ render()

void RangeNode::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 100 of file range.cpp.

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

◆ setNodeList()

void RangeNode::setNodeList ( const NodeList & list)

Definition at line 98 of file range.cpp.