Belle II Software light-2406-ragdoll
|
A parsed cut-string naturally has a tree shape which incorporates the infomation of operator precedence and evaluation order of the statements. More...
#include <AbstractNodes.h>
Public Types | |
typedef AVariableManager::Object | Object |
Template argument dependent Particle type definition. | |
typedef AVariableManager::Var | Var |
Template argument dependent Variable type definition. | |
Public Member Functions | |
virtual bool | check (const Object *p) const =0 |
pure virtual check function, has to be overridden in derived class | |
virtual void | print () const =0 |
pure virtual print function, has to be overridden in derived class | |
virtual std::string | decompile () const =0 |
pure virtual decompile function, has to be overridden in derived class | |
virtual | ~AbstractBooleanNode () |
Virtual destructor. | |
A parsed cut-string naturally has a tree shape which incorporates the infomation of operator precedence and evaluation order of the statements.
For this application it is sufficient to derive a syntax directed translation of the abstract syntax tree. One can divide the Nodes into categories: BooleanNodes and ExpressionNodes BooleanNodes handle boolean statements and concatenations thereof. Every subclass must implement the check(Particle* p) function.
Definition at line 30 of file AbstractNodes.h.
typedef AVariableManager::Object Object |
Template argument dependent Particle type definition.
Definition at line 35 of file AbstractNodes.h.
typedef AVariableManager::Var Var |
Template argument dependent Variable type definition.
Definition at line 39 of file AbstractNodes.h.
|
inlinevirtual |
|
pure virtual |
pure virtual check function, has to be overridden in derived class
Implemented in UnaryBooleanNode< AVariableManager >, BinaryBooleanNode< AVariableManager >, UnaryRelationalNode< AVariableManager >, BinaryRelationalNode< AVariableManager >, and TernaryRelationalNode< AVariableManager >.
|
pure virtual |
pure virtual decompile function, has to be overridden in derived class
Implemented in UnaryBooleanNode< AVariableManager >, BinaryBooleanNode< AVariableManager >, UnaryRelationalNode< AVariableManager >, BinaryRelationalNode< AVariableManager >, and TernaryRelationalNode< AVariableManager >.
|
pure virtual |
pure virtual print function, has to be overridden in derived class
Implemented in UnaryBooleanNode< AVariableManager >, BinaryBooleanNode< AVariableManager >, UnaryRelationalNode< AVariableManager >, BinaryRelationalNode< AVariableManager >, and TernaryRelationalNode< AVariableManager >.