MQTTSuite
Loading...
Searching...
No Matches
inja::IfStatementNode Class Reference

#include <inja.hpp>

Inheritance diagram for inja::IfStatementNode:
Collaboration diagram for inja::IfStatementNode:

Public Member Functions

 IfStatementNode (BlockNode *const parent, size_t pos)
 IfStatementNode (bool is_nested, BlockNode *const parent, size_t pos)
void accept (NodeVisitor &v) const override
Public Member Functions inherited from inja::StatementNode
 StatementNode (size_t pos)
Public Member Functions inherited from inja::AstNode
 AstNode (size_t pos)
 AstNode (const AstNode &)=default
AstNodeoperator= (const AstNode &)=default
virtual ~AstNode ()

Public Attributes

ExpressionListNode condition
BlockNode true_statement
BlockNode false_statement
BlockNode *const parent
const bool is_nested
bool has_false_statement {false}
Public Attributes inherited from inja::AstNode
size_t pos

Detailed Description

Definition at line 706 of file inja.hpp.

Constructor & Destructor Documentation

◆ IfStatementNode() [1/2]

inja::IfStatementNode::IfStatementNode ( BlockNode *const parent,
size_t pos )
inlineexplicit

Definition at line 716 of file inja.hpp.

718 , parent(parent)
719 , is_nested(false) {
720 }
size_t pos
Definition inja.hpp:418
BlockNode *const parent
Definition inja.hpp:711
const bool is_nested
Definition inja.hpp:713
StatementNode(size_t pos)
Definition inja.hpp:655

References is_nested, parent, and inja::StatementNode::StatementNode().

Here is the call graph for this function:

◆ IfStatementNode() [2/2]

inja::IfStatementNode::IfStatementNode ( bool is_nested,
BlockNode *const parent,
size_t pos )
inlineexplicit

Definition at line 721 of file inja.hpp.

723 , parent(parent)
725 }

References is_nested, parent, and inja::StatementNode::StatementNode().

Here is the call graph for this function:

Member Function Documentation

◆ accept()

void inja::IfStatementNode::accept ( NodeVisitor & v) const
inlineoverridevirtual

Implements inja::StatementNode.

Definition at line 727 of file inja.hpp.

727 {
728 v.visit(*this);
729 }

References inja::NodeVisitor::visit().

Here is the call graph for this function:

Member Data Documentation

◆ condition

ExpressionListNode inja::IfStatementNode::condition

◆ false_statement

BlockNode inja::IfStatementNode::false_statement

◆ has_false_statement

bool inja::IfStatementNode::has_false_statement {false}

Definition at line 714 of file inja.hpp.

714{false};

Referenced by inja::Parser::parse_statement(), and inja::Renderer::visit().

◆ is_nested

const bool inja::IfStatementNode::is_nested

Definition at line 713 of file inja.hpp.

Referenced by IfStatementNode(), IfStatementNode(), and inja::Parser::parse_statement().

◆ parent

BlockNode* const inja::IfStatementNode::parent

Definition at line 711 of file inja.hpp.

Referenced by IfStatementNode(), IfStatementNode(), and inja::Parser::parse_statement().

◆ true_statement

BlockNode inja::IfStatementNode::true_statement

The documentation for this class was generated from the following file: