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

#include <minja.hpp>

Inheritance diagram for minja::SetTemplateToken:
minja::TemplateToken

Public Member Functions

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

Public Attributes

std::string ns
 
std::vector< std::string > var_names
 
std::shared_ptr< Expressionvalue
 
- 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 816 of file minja.hpp.

Constructor & Destructor Documentation

◆ SetTemplateToken()

minja::SetTemplateToken::SetTemplateToken ( const Location loc,
SpaceHandling  pre,
SpaceHandling  post,
const std::string &  ns,
const std::vector< std::string > &  vns,
std::shared_ptr< Expression > &&  v 
)
inline

Definition at line 820 of file minja.hpp.

Member Data Documentation

◆ ns

std::string minja::SetTemplateToken::ns

Definition at line 817 of file minja.hpp.

◆ value

std::shared_ptr<Expression> minja::SetTemplateToken::value

Definition at line 819 of file minja.hpp.

◆ var_names

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

Definition at line 818 of file minja.hpp.


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