liblloyal 1.0.0
Composable primitives for llama.cpp inference
Loading...
Searching...
No Matches
minja::TemplateNode Class Referenceabstract

#include <minja.hpp>

Inheritance diagram for minja::TemplateNode:
minja::ExpressionNode minja::FilterNode minja::ForNode minja::IfNode minja::LoopControlNode minja::MacroNode minja::SequenceNode minja::SetNode minja::SetTemplateNode minja::TextNode

Public Member Functions

 TemplateNode (const Location &location)
 
void render (std::ostringstream &out, const std::shared_ptr< Context > &context) const
 
const Locationlocation () const
 
virtual ~TemplateNode ()=default
 
std::string render (const std::shared_ptr< Context > &context) const
 

Protected Member Functions

virtual void do_render (std::ostringstream &out, const std::shared_ptr< Context > &context) const =0
 

Detailed Description

Definition at line 849 of file minja.hpp.

Constructor & Destructor Documentation

◆ TemplateNode()

minja::TemplateNode::TemplateNode ( const Location location)
inline

Definition at line 855 of file minja.hpp.

◆ ~TemplateNode()

virtual minja::TemplateNode::~TemplateNode ( )
virtualdefault

Member Function Documentation

◆ do_render()

virtual void minja::TemplateNode::do_render ( std::ostringstream &  out,
const std::shared_ptr< Context > &  context 
) const
protectedpure virtual

◆ location()

const Location & minja::TemplateNode::location ( ) const
inline

Definition at line 872 of file minja.hpp.

◆ render() [1/2]

std::string minja::TemplateNode::render ( const std::shared_ptr< Context > &  context) const
inline

Definition at line 874 of file minja.hpp.

◆ render() [2/2]

void minja::TemplateNode::render ( std::ostringstream &  out,
const std::shared_ptr< Context > &  context 
) const
inline

Definition at line 856 of file minja.hpp.


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