Crossfire Server, Trunk
inja::IfStatementNode Class Reference

#include <inja.hpp>

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

Public Member Functions

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

Data Fields

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

Detailed Description

Definition at line 2672 of file inja.hpp.

Constructor & Destructor Documentation

◆ IfStatementNode() [1/2]

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

Definition at line 2682 of file inja.hpp.

◆ IfStatementNode() [2/2]

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

Definition at line 2683 of file inja.hpp.

Member Function Documentation

◆ accept()

void inja::IfStatementNode::accept ( NodeVisitor v) const
inlinevirtual

Implements inja::StatementNode.

Definition at line 2685 of file inja.hpp.

References inja::NodeVisitor::visit().

+ Here is the call graph for this function:

Field Documentation

◆ condition

ExpressionListNode inja::IfStatementNode::condition

Definition at line 2674 of file inja.hpp.

Referenced by inja::StatisticsVisitor::visit(), and inja::Renderer::visit().

◆ false_statement

BlockNode inja::IfStatementNode::false_statement

Definition at line 2676 of file inja.hpp.

Referenced by inja::StatisticsVisitor::visit(), and inja::Renderer::visit().

◆ has_false_statement

bool inja::IfStatementNode::has_false_statement {false}

Definition at line 2680 of file inja.hpp.

Referenced by inja::Renderer::visit().

◆ is_nested

const bool inja::IfStatementNode::is_nested

Definition at line 2679 of file inja.hpp.

◆ parent

BlockNode* const inja::IfStatementNode::parent

Definition at line 2677 of file inja.hpp.

◆ true_statement

BlockNode inja::IfStatementNode::true_statement

Definition at line 2675 of file inja.hpp.

Referenced by inja::StatisticsVisitor::visit(), and inja::Renderer::visit().


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