Belle II Software  release-08-01-10
IdentifierNode< AVariableManager > Class Template Reference

Class which stores the name of a variable. More...

#include <CutNodes.h>

Inheritance diagram for IdentifierNode< AVariableManager >:
Collaboration diagram for IdentifierNode< AVariableManager >:

Public Member Functions

AVariableManager::VarVariant evaluate (const Object *p) const override
 evaluate m_var with p and return the result More...
 
void print () const override
 Print node.
 
std::string decompile () const override
 Decompile Node back to a string. More...
 
void processVariable ()
 Get variable from AVariableManger.
 
 ~IdentifierNode ()
 Destructor.
 

Private Types

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

Private Member Functions

 IdentifierNode (const std::string &name)
 Constructor. More...
 

Private Attributes

const std::string m_name
 name of the variable
 
const Varm_var
 set if there was a valid variable in this cut
 

Friends

class NodeFactory
 

Detailed Description

template<class AVariableManager>
class Belle2::IdentifierNode< AVariableManager >

Class which stores the name of a variable.

Variable evaluation with the variable manager

Definition at line 941 of file CutNodes.h.

Constructor & Destructor Documentation

◆ IdentifierNode()

IdentifierNode ( const std::string &  name)
inlineexplicitprivate

Constructor.

Parameters
name(const std::string&): name of the identifier in cut

Definition at line 1003 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 975 of file CutNodes.h.

◆ evaluate()

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

evaluate m_var with p and return the result

Parameters
ppointer to the object, for which m_var should be evaluated.

Implements AbstractExpressionNode< AVariableManager >.

Definition at line 955 of file CutNodes.h.


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