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

#include <minja.hpp>

Inheritance diagram for minja::BinaryOpExpr:
minja::Expression

Public Types

enum class  Op {
  StrConcat , Add , Sub , Mul ,
  MulMul , Div , DivDiv , Mod ,
  Eq , Ne , Lt , Gt ,
  Le , Ge , And , Or ,
  In , NotIn , Is , IsNot
}
 
- Public Types inherited from minja::Expression
using Parameters = std::vector< std::pair< std::string, std::shared_ptr< Expression > > >
 

Public Member Functions

 BinaryOpExpr (const Location &loc, std::shared_ptr< Expression > &&l, std::shared_ptr< Expression > &&r, Op o)
 
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 Attributes inherited from minja::Expression
Location location
 

Detailed Description

Definition at line 1300 of file minja.hpp.

Member Enumeration Documentation

◆ Op

enum class minja::BinaryOpExpr::Op
strong
Enumerator
StrConcat 
Add 
Sub 
Mul 
MulMul 
Div 
DivDiv 
Mod 
Eq 
Ne 
Lt 
Gt 
Le 
Ge 
And 
Or 
In 
NotIn 
Is 
IsNot 

Definition at line 1302 of file minja.hpp.

Constructor & Destructor Documentation

◆ BinaryOpExpr()

minja::BinaryOpExpr::BinaryOpExpr ( const Location loc,
std::shared_ptr< Expression > &&  l,
std::shared_ptr< Expression > &&  r,
Op  o 
)
inline

Definition at line 1308 of file minja.hpp.

Member Function Documentation

◆ do_evaluate()

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

Implements minja::Expression.

Definition at line 1310 of file minja.hpp.


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