Crossfire Server, Trunk
inja::FunctionNode Class Reference

#include <inja.hpp>

+ Inheritance diagram for inja::FunctionNode:
+ Collaboration diagram for inja::FunctionNode:

Public Types

enum  Associativity { Associativity::Left, Associativity::Right }

Public Member Functions

void accept (NodeVisitor &v) const
 FunctionNode (nonstd::string_view name, size_t pos)
 FunctionNode (Op operation, size_t pos)
- Public Member Functions inherited from inja::ExpressionNode
 ExpressionNode (size_t pos)
- Public Member Functions inherited from inja::AstNode
 AstNode (size_t pos)
virtual ~AstNode ()

Data Fields

std::vector< std::shared_ptr< ExpressionNode > > arguments
Associativity associativity
CallbackFunction callback
std::string name
int number_args
Op operation
unsigned int precedence
- Data Fields inherited from inja::AstNode
size_t pos

Private Types

using Op = FunctionStorage::Operation

Detailed Description

Definition at line 2500 of file inja.hpp.

Member Typedef Documentation

◆ Op

Definition at line 2501 of file inja.hpp.

Member Enumeration Documentation

◆ Associativity


Definition at line 2504 of file inja.hpp.

Constructor & Destructor Documentation

◆ FunctionNode() [1/2]

inja::FunctionNode::FunctionNode ( nonstd::string_view  name,
size_t  pos 

Definition at line 2519 of file inja.hpp.

◆ FunctionNode() [2/2]

inja::FunctionNode::FunctionNode ( Op  operation,
size_t  pos 

Definition at line 2520 of file inja.hpp.

Member Function Documentation

◆ accept()

void inja::FunctionNode::accept ( NodeVisitor v) const

Reimplemented from inja::ExpressionNode.

Definition at line 2614 of file inja.hpp.

References inja::NodeVisitor::visit().

+ Here is the call graph for this function:

Field Documentation

◆ arguments

std::vector<std::shared_ptr<ExpressionNode> > inja::FunctionNode::arguments

◆ associativity

Associativity inja::FunctionNode::associativity

Definition at line 2510 of file inja.hpp.

◆ callback

CallbackFunction inja::FunctionNode::callback

Definition at line 2517 of file inja.hpp.

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

◆ name

std::string inja::FunctionNode::name

Definition at line 2514 of file inja.hpp.

◆ number_args

int inja::FunctionNode::number_args

Definition at line 2515 of file inja.hpp.

◆ operation

Op inja::FunctionNode::operation

Definition at line 2512 of file inja.hpp.

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

◆ precedence

unsigned int inja::FunctionNode::precedence

Definition at line 2509 of file inja.hpp.

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