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

#include <minja.hpp>

Inheritance diagram for minja::ForTemplateToken:
minja::TemplateToken

Public Member Functions

 ForTemplateToken (const Location &loc, SpaceHandling pre, SpaceHandling post, const std::vector< std::string > &vns, std::shared_ptr< Expression > &&iter, std::shared_ptr< Expression > &&c, bool r)
 
- Public Member Functions inherited from minja::TemplateToken
 TemplateToken (Type type, const Location &location, SpaceHandling pre, SpaceHandling post)
 
virtual ~TemplateToken ()=default
 

Public Attributes

std::vector< std::string > var_names
 
std::shared_ptr< Expressioniterable
 
std::shared_ptr< Expressioncondition
 
bool recursive
 
- Public Attributes inherited from minja::TemplateToken
Type type
 
Location location
 
SpaceHandling pre_space = SpaceHandling::Keep
 
SpaceHandling post_space = SpaceHandling::Keep
 

Additional Inherited Members

- Public Types inherited from minja::TemplateToken
enum class  Type {
  Text , Expression , If , Else ,
  Elif , EndIf , For , EndFor ,
  Generation , EndGeneration , Set , EndSet ,
  Comment , Macro , EndMacro , Filter ,
  EndFilter , Break , Continue
}
 
- Static Public Member Functions inherited from minja::TemplateToken
static std::string typeToString (Type t)
 

Detailed Description

Definition at line 794 of file minja.hpp.

Constructor & Destructor Documentation

◆ ForTemplateToken()

minja::ForTemplateToken::ForTemplateToken ( const Location loc,
SpaceHandling  pre,
SpaceHandling  post,
const std::vector< std::string > &  vns,
std::shared_ptr< Expression > &&  iter,
std::shared_ptr< Expression > &&  c,
bool  r 
)
inline

Definition at line 799 of file minja.hpp.

Member Data Documentation

◆ condition

std::shared_ptr<Expression> minja::ForTemplateToken::condition

Definition at line 797 of file minja.hpp.

◆ iterable

std::shared_ptr<Expression> minja::ForTemplateToken::iterable

Definition at line 796 of file minja.hpp.

◆ recursive

bool minja::ForTemplateToken::recursive

Definition at line 798 of file minja.hpp.

◆ var_names

std::vector<std::string> minja::ForTemplateToken::var_names

Definition at line 795 of file minja.hpp.


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