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

#include <minja.hpp>

Inheritance diagram for minja::ForNode:
minja::TemplateNode

Public Member Functions

 ForNode (const Location &loc, std::vector< std::string > &&var_names, std::shared_ptr< Expression > &&iterable, std::shared_ptr< Expression > &&condition, std::shared_ptr< TemplateNode > &&body, bool recursive, std::shared_ptr< TemplateNode > &&else_body)
 
void do_render (std::ostringstream &out, const std::shared_ptr< Context > &context) const override
 
- Public Member Functions inherited from minja::TemplateNode
 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
 

Additional Inherited Members

Detailed Description

Definition at line 946 of file minja.hpp.

Constructor & Destructor Documentation

◆ ForNode()

minja::ForNode::ForNode ( const Location loc,
std::vector< std::string > &&  var_names,
std::shared_ptr< Expression > &&  iterable,
std::shared_ptr< Expression > &&  condition,
std::shared_ptr< TemplateNode > &&  body,
bool  recursive,
std::shared_ptr< TemplateNode > &&  else_body 
)
inline

Definition at line 954 of file minja.hpp.

Member Function Documentation

◆ do_render()

void minja::ForNode::do_render ( std::ostringstream &  out,
const std::shared_ptr< Context > &  context 
) const
inlineoverridevirtual

Implements minja::TemplateNode.

Definition at line 958 of file minja.hpp.


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