AutoPas  3.0.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
autopas::RuleSyntax::Statement Struct Referenceabstract

A statement in the rule language. More...

#include <RuleBasedProgramTree.h>

Inheritance diagram for autopas::RuleSyntax::Statement:
Inheritance graph
[legend]

Public Member Functions

virtual ~Statement ()=default
 Virtual default constructor.
 
virtual void generateCode (CodeGenerationContext &context, RuleVM::Program &program) const =0
 Generates code for this statement.
 

Detailed Description

A statement in the rule language.

Member Function Documentation

◆ generateCode()

virtual void autopas::RuleSyntax::Statement::generateCode ( CodeGenerationContext context,
RuleVM::Program program 
) const
pure virtual

Generates code for this statement.

Parameters
contextThe context to generate code in.
programThe program to append the code to.

Implemented in autopas::RuleSyntax::ConfigurationOrder, autopas::RuleSyntax::DefineList, autopas::RuleSyntax::Define, and autopas::RuleSyntax::If.


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