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

#include <inja.hpp>

Inheritance diagram for inja::LiteralNode:
Collaboration diagram for inja::LiteralNode:

Public Member Functions

 LiteralNode (std::string_view data_text, size_t pos)
void accept (NodeVisitor &v) const override
Public Member Functions inherited from inja::ExpressionNode
 ExpressionNode (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

const json value
Public Attributes inherited from inja::AstNode
size_t pos

Detailed Description

Definition at line 467 of file inja.hpp.

Constructor & Destructor Documentation

◆ LiteralNode()

inja::LiteralNode::LiteralNode ( std::string_view data_text,
size_t pos )
inlineexplicit

Definition at line 471 of file inja.hpp.

473 , value(json::parse(data_text)) {
474 }
size_t pos
Definition inja.hpp:418
ExpressionNode(size_t pos)
Definition inja.hpp:458
const json value
Definition inja.hpp:469

References inja::ExpressionNode::ExpressionNode(), and value.

Here is the call graph for this function:

Member Function Documentation

◆ accept()

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

Reimplemented from inja::ExpressionNode.

Definition at line 476 of file inja.hpp.

476 {
477 v.visit(*this);
478 }

References inja::NodeVisitor::visit().

Here is the call graph for this function:

Member Data Documentation

◆ value

const json inja::LiteralNode::value

Definition at line 469 of file inja.hpp.

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


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