A list definition in the rule language. More...
#include <RuleBasedProgramTree.h>


Public Member Functions | |
| DefineList (std::string listName, std::vector< Literal > values) | |
| Constructs a list definition. | |
| void | generateCode (CodeGenerationContext &context, RuleVM::Program &program) const override |
| Generates code for this statement. | |
Public Member Functions inherited from autopas::RuleSyntax::Statement | |
| virtual | ~Statement ()=default |
| Virtual default constructor. | |
| virtual void | generateCode (CodeGenerationContext &context, RuleVM::Program &program) const =0 |
| Generates code for this statement. | |
Public Attributes | |
| std::string | listName |
| The name of the list. | |
| std::vector< Literal > | values |
| The values in the list. | |
A list definition in the rule language.
| autopas::RuleSyntax::DefineList::DefineList | ( | std::string | listName, |
| std::vector< Literal > | values | ||
| ) |
Constructs a list definition.
| listName | The list name. |
| values | The values in the list. |
|
overridevirtual |
Generates code for this statement.
| context | The context to generate code in. |
| program | The program to append the code to. |
Implements autopas::RuleSyntax::Statement.