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)
virtual ~AstNode ()

Public Attributes

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

Detailed Description

Definition at line 494 of file inja.hpp.

Constructor & Destructor Documentation

◆ LiteralNode()

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

Definition at line 498 of file inja.hpp.

500 , value(json::parse(data_text)) {
501 }
size_t pos
Definition inja.hpp:447
ExpressionNode(size_t pos)
Definition inja.hpp:485
const json value
Definition inja.hpp:496

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 503 of file inja.hpp.

503 {
504 v.visit(*this);
505 }

References inja::NodeVisitor::visit().

Here is the call graph for this function:

Member Data Documentation

◆ value

const json inja::LiteralNode::value

Definition at line 496 of file inja.hpp.

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


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