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

#include <minja.hpp>

Inheritance diagram for minja::IfExpr:
minja::Expression

Public Member Functions

 IfExpr (const Location &loc, std::shared_ptr< Expression > &&c, std::shared_ptr< Expression > &&t, std::shared_ptr< Expression > &&e)
 
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 1143 of file minja.hpp.

Constructor & Destructor Documentation

◆ IfExpr()

minja::IfExpr::IfExpr ( const Location loc,
std::shared_ptr< Expression > &&  c,
std::shared_ptr< Expression > &&  t,
std::shared_ptr< Expression > &&  e 
)
inline

Definition at line 1148 of file minja.hpp.

Member Function Documentation

◆ do_evaluate()

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

Implements minja::Expression.

Definition at line 1150 of file minja.hpp.


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