Belle II Software light-2406-ragdoll
AbstractBooleanNode< AVariableManager > Class Template Referenceabstract

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>

Inheritance diagram for AbstractBooleanNode< AVariableManager >:

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.
 

Detailed Description

template<class AVariableManager>
class Belle2::AbstractBooleanNode< AVariableManager >

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.

Member Typedef Documentation

◆ Object

typedef AVariableManager::Object Object

Template argument dependent Particle type definition.

Definition at line 35 of file AbstractNodes.h.

◆ Var

typedef AVariableManager::Var Var

Template argument dependent Variable type definition.

Definition at line 39 of file AbstractNodes.h.

Constructor & Destructor Documentation

◆ ~AbstractBooleanNode()

virtual ~AbstractBooleanNode ( )
inlinevirtual

Virtual destructor.

Definition at line 56 of file AbstractNodes.h.

56{};

Member Function Documentation

◆ check()

virtual bool check ( const Object p) const
pure virtual

◆ decompile()

virtual std::string decompile ( ) const
pure virtual

◆ print()

virtual void print ( ) const
pure virtual

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