Crossfire Server, Trunk
inja::StatisticsVisitor Class Reference

A class for counting statistics on a Template. More...

#include <inja.hpp>

+ Inheritance diagram for inja::StatisticsVisitor:
+ Collaboration diagram for inja::StatisticsVisitor:

Public Member Functions

 StatisticsVisitor ()
 
- Public Member Functions inherited from inja::NodeVisitor
virtual ~NodeVisitor ()=default
 

Data Fields

unsigned int variable_counter
 

Private Member Functions

void visit (const BlockNode &node)
 
void visit (const BlockStatementNode &node)
 
void visit (const ExpressionListNode &node)
 
void visit (const ExpressionNode &)
 
void visit (const ExtendsStatementNode &)
 
void visit (const ForArrayStatementNode &node)
 
void visit (const ForObjectStatementNode &node)
 
void visit (const ForStatementNode &)
 
void visit (const FunctionNode &node)
 
void visit (const IfStatementNode &node)
 
void visit (const IncludeStatementNode &)
 
void visit (const JsonNode &)
 
void visit (const LiteralNode &)
 
void visit (const SetStatementNode &)
 
void visit (const StatementNode &)
 
void visit (const TextNode &)
 

Detailed Description

A class for counting statistics on a Template.

Definition at line 2765 of file inja.hpp.

Constructor & Destructor Documentation

◆ StatisticsVisitor()

inja::StatisticsVisitor::StatisticsVisitor ( )
inlineexplicit

Definition at line 2822 of file inja.hpp.

Member Function Documentation

◆ visit() [1/16]

void inja::StatisticsVisitor::visit ( const BlockNode node)
inlineprivatevirtual

Implements inja::NodeVisitor.

Definition at line 2766 of file inja.hpp.

References inja::BlockNode::nodes.

◆ visit() [2/16]

void inja::StatisticsVisitor::visit ( const BlockStatementNode node)
inlineprivatevirtual

Implements inja::NodeVisitor.

Definition at line 2813 of file inja.hpp.

References inja::BlockNode::accept(), and inja::BlockStatementNode::block.

+ Here is the call graph for this function:

◆ visit() [3/16]

void inja::StatisticsVisitor::visit ( const ExpressionListNode node)
inlineprivatevirtual

Implements inja::NodeVisitor.

Definition at line 2786 of file inja.hpp.

References inja::ExpressionListNode::root.

◆ visit() [4/16]

void inja::StatisticsVisitor::visit ( const ExpressionNode )
inlineprivatevirtual

Implements inja::NodeVisitor.

Definition at line 2773 of file inja.hpp.

◆ visit() [5/16]

void inja::StatisticsVisitor::visit ( const ExtendsStatementNode )
inlineprivatevirtual

Implements inja::NodeVisitor.

Definition at line 2811 of file inja.hpp.

◆ visit() [6/16]

void inja::StatisticsVisitor::visit ( const ForArrayStatementNode node)
inlineprivatevirtual

Implements inja::NodeVisitor.

Definition at line 2793 of file inja.hpp.

References inja::BlockNode::accept(), inja::ExpressionListNode::accept(), inja::ForStatementNode::body, and inja::ForStatementNode::condition.

+ Here is the call graph for this function:

◆ visit() [7/16]

void inja::StatisticsVisitor::visit ( const ForObjectStatementNode node)
inlineprivatevirtual

Implements inja::NodeVisitor.

Definition at line 2798 of file inja.hpp.

References inja::BlockNode::accept(), inja::ExpressionListNode::accept(), inja::ForStatementNode::body, and inja::ForStatementNode::condition.

+ Here is the call graph for this function:

◆ visit() [8/16]

void inja::StatisticsVisitor::visit ( const ForStatementNode )
inlineprivatevirtual

Implements inja::NodeVisitor.

Definition at line 2791 of file inja.hpp.

◆ visit() [9/16]

void inja::StatisticsVisitor::visit ( const FunctionNode node)
inlineprivatevirtual

Implements inja::NodeVisitor.

Definition at line 2780 of file inja.hpp.

References inja::FunctionNode::arguments.

◆ visit() [10/16]

void inja::StatisticsVisitor::visit ( const IfStatementNode node)
inlineprivatevirtual

◆ visit() [11/16]

void inja::StatisticsVisitor::visit ( const IncludeStatementNode )
inlineprivatevirtual

Implements inja::NodeVisitor.

Definition at line 2809 of file inja.hpp.

◆ visit() [12/16]

void inja::StatisticsVisitor::visit ( const JsonNode )
inlineprivatevirtual

Implements inja::NodeVisitor.

Definition at line 2776 of file inja.hpp.

◆ visit() [13/16]

void inja::StatisticsVisitor::visit ( const LiteralNode )
inlineprivatevirtual

Implements inja::NodeVisitor.

Definition at line 2774 of file inja.hpp.

◆ visit() [14/16]

void inja::StatisticsVisitor::visit ( const SetStatementNode )
inlineprivatevirtual

Implements inja::NodeVisitor.

Definition at line 2817 of file inja.hpp.

◆ visit() [15/16]

void inja::StatisticsVisitor::visit ( const StatementNode )
inlineprivatevirtual

Implements inja::NodeVisitor.

Definition at line 2790 of file inja.hpp.

◆ visit() [16/16]

void inja::StatisticsVisitor::visit ( const TextNode )
inlineprivatevirtual

Implements inja::NodeVisitor.

Definition at line 2772 of file inja.hpp.

Field Documentation

◆ variable_counter

unsigned int inja::StatisticsVisitor::variable_counter

Definition at line 2820 of file inja.hpp.


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