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

#include <minja.hpp>

Inheritance diagram for minja::UnaryOpExpr:
minja::Expression

Public Types

enum class  Op {
  Plus , Minus , LogicalNot , Expansion ,
  ExpansionDict
}
 
- Public Types inherited from minja::Expression
using Parameters = std::vector< std::pair< std::string, std::shared_ptr< Expression > > >
 

Public Member Functions

 UnaryOpExpr (const Location &loc, std::shared_ptr< Expression > &&e, 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
 

Public Attributes

std::shared_ptr< Expressionexpr
 
Op op
 
- Public Attributes inherited from minja::Expression
Location location
 

Additional Inherited Members

Detailed Description

Definition at line 1271 of file minja.hpp.

Member Enumeration Documentation

◆ Op

enum class minja::UnaryOpExpr::Op
strong
Enumerator
Plus 
Minus 
LogicalNot 
Expansion 
ExpansionDict 

Definition at line 1273 of file minja.hpp.

Constructor & Destructor Documentation

◆ UnaryOpExpr()

minja::UnaryOpExpr::UnaryOpExpr ( const Location loc,
std::shared_ptr< Expression > &&  e,
Op  o 
)
inline

Definition at line 1276 of file minja.hpp.

Member Function Documentation

◆ do_evaluate()

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

Implements minja::Expression.

Definition at line 1278 of file minja.hpp.

Member Data Documentation

◆ expr

std::shared_ptr<Expression> minja::UnaryOpExpr::expr

Definition at line 1274 of file minja.hpp.

◆ op

Op minja::UnaryOpExpr::op

Definition at line 1275 of file minja.hpp.


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