Cutelee  6.1.0
Public Member Functions | List of all members
IfNode Class Reference
Inheritance diagram for IfNode:
Inheritance graph
[legend]

Public Member Functions

 IfNode (QObject *parent={})
 
void render (OutputStream *stream, Context *c) const override
 
void setNodelistConditions (const std::vector< std::pair< std::shared_ptr< IfToken >, NodeList > > &conditionNodelists)
 
- 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 39 of file if.h.

Member Function Documentation

◆ render()

void IfNode::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 83 of file if.cpp.

References Cutelee::variantIsTrue().