AutoPas  3.0.0
Loading...
Searching...
No Matches
Classes | Functions
autopas::RuleSyntax Namespace Reference

Namespace that contains code for evaluating the RuleBasedTuning-Strategy. More...

Classes

struct  BinaryOperator
 A binary operator in the rule language. More...
 
class  CodeGenerationContext
 A CodeGenerationContext keeps track of the needed stack size of the program, the mapping from variables to stack ddresses, the currently known lists, and the configuration patterns with they indices in the program encountered so far. More...
 
struct  ConfigurationOrder
 A ConfigurationOrder statement in the rule language e.g. More...
 
struct  Define
 A variable definition in the rule language. More...
 
struct  DefineList
 A list definition in the rule language. More...
 
struct  Expression
 An expression in the rule language. More...
 
struct  If
 An if statement in the rule language. More...
 
struct  Literal
 A literal in the rule language. More...
 
class  RuleBasedProgramParser
 Parses a rule program and produces an AST (RuleBasedProgramTree) and a corresponding CodeGenerationContext. More...
 
struct  RuleBasedProgramTree
 The AST of a rule program. More...
 
struct  Statement
 A statement in the rule language. More...
 
class  TranslationVisitor
 The antlr visitor that produces the AST. More...
 
struct  UnaryOperator
 A unary operator in the rule language. More...
 
struct  Variable
 A variable access in the rule language. More...
 

Functions

Type typeOf (const RuleVM::MemoryCell &memoryCell)
 Converts the type of a RuleVM memory cell to the type in the AST.
 

Detailed Description

Namespace that contains code for evaluating the RuleBasedTuning-Strategy.

Contains the AST of a rule program.

Function Documentation

◆ typeOf()

Type autopas::RuleSyntax::typeOf ( const RuleVM::MemoryCell memoryCell)
inline

Converts the type of a RuleVM memory cell to the type in the AST.

Depends on MemoryCell and Type defining the types in the same order.

Parameters
memoryCellThe memory cell to get the type of.
Returns
The type of the passed MemoryCell in the AST.