Cutelee 6.1.0
WithNode Class Reference
Inheritance diagram for WithNode:

Public Member Functions

 WithNode (const std::vector< std::pair< QString, FilterExpression > > &namedExpressions, QObject *parent=nullptr)
void render (OutputStream *stream, Context *c) const override
void setNodeList (const NodeList &nodeList)
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 with.h.

Constructor & Destructor Documentation

◆ WithNode()

WithNode::WithNode ( const std::vector< std::pair< QString, FilterExpression > > & namedExpressions,
QObject * parent = nullptr )

Definition at line 63 of file with.cpp.

Member Function Documentation

◆ render()

void WithNode::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 73 of file with.cpp.

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

◆ setNodeList()

void WithNode::setNodeList ( const NodeList & nodeList)

Definition at line 71 of file with.cpp.