Belle II Software  release-08-01-10
DataNode< AVariableManager, T > Class Template Reference

Template class for storing the Constants (int, double, bool) of the Cutstring. More...

#include <CutNodes.h>

Inheritance diagram for DataNode< AVariableManager, T >:
Collaboration diagram for DataNode< AVariableManager, T >:

Public Types

typedef AVariableManager::Var Var
 Template argument dependent Variable type definition.
 

Public Member Functions

AVariableManager::VarVariant evaluate (const Object *p) const override
 return m_value as a variant<double, int, bool> More...
 
void print () const override
 Print node.
 
std::string decompile () const override
 Decompile Node back to a string. More...
 
 ~DataNode ()
 Destructor.
 

Private Types

typedef AbstractExpressionNode< AVariableManager >::Object Object
 Template argument dependent Particle type definition.
 

Private Member Functions

 DataNode (T value)
 Constructor. More...
 

Private Attributes

const T m_value
 constant of type T which is always returned by evaluate(const Object* p)
 

Friends

class NodeFactory
 

Detailed Description

template<class AVariableManager, typename T>
class Belle2::DataNode< AVariableManager, T >

Template class for storing the Constants (int, double, bool) of the Cutstring.

evaluate(p) returns the value.

Definition at line 886 of file CutNodes.h.

Constructor & Destructor Documentation

◆ DataNode()

DataNode ( value)
inlineexplicitprivate

Constructor.

Parameters
value(T): some constant value in cut may be of type double, int, bool

Definition at line 897 of file CutNodes.h.

Member Function Documentation

◆ decompile()

std::string decompile ( ) const
inlineoverridevirtual

Decompile Node back to a string.

decompile(compile) should give the same result.

Implements AbstractExpressionNode< AVariableManager >.

Definition at line 923 of file CutNodes.h.

◆ evaluate()

AVariableManager::VarVariant evaluate ( const Object p) const
inlineoverridevirtual

return m_value as a variant<double, int, bool>

Parameters
ppointer to the object, that should be checked. Not needed here since we always return the constant m_value.

Implements AbstractExpressionNode< AVariableManager >.

Definition at line 904 of file CutNodes.h.


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