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

#include <minja.hpp>

Inheritance diagram for minja::VariableExpr:
minja::Expression

Public Member Functions

 VariableExpr (const Location &loc, const std::string &n)
 
std::string get_name () const
 
Value do_evaluate (const std::shared_ptr< Context > &context) const override
 
- Public Member Functions inherited from minja::Expression
 Expression (const Location &location)
 
virtual ~Expression ()=default
 
Value evaluate (const std::shared_ptr< Context > &context) const
 

Additional Inherited Members

- Public Types inherited from minja::Expression
using Parameters = std::vector< std::pair< std::string, std::shared_ptr< Expression > > >
 
- Public Attributes inherited from minja::Expression
Location location
 

Detailed Description

Definition at line 677 of file minja.hpp.

Constructor & Destructor Documentation

◆ VariableExpr()

minja::VariableExpr::VariableExpr ( const Location loc,
const std::string &  n 
)
inline

Definition at line 680 of file minja.hpp.

Member Function Documentation

◆ do_evaluate()

Value minja::VariableExpr::do_evaluate ( const std::shared_ptr< Context > &  context) const
inlineoverridevirtual

Implements minja::Expression.

Definition at line 683 of file minja.hpp.

◆ get_name()

std::string minja::VariableExpr::get_name ( ) const
inline

Definition at line 682 of file minja.hpp.


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