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

FunctionNode Node class for handling MetaVariables in cuts. More...

#include <CutNodes.h>

Inheritance diagram for FunctionNode< AVariableManager >:
Collaboration diagram for FunctionNode< 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 processMetaVariable ()
 Get MetaVariable from AVariableManager.
 
 ~FunctionNode ()
 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

 FunctionNode (const std::string &functionName, const std::vector< std::string > &functionArguments)
 Constructor. More...
 

Private Attributes

const std::string m_name
 Function name of the MetaVariable.
 
const std::vector< std::string > m_arguments
 vector of string arguments of the MetaVariable
 
const Varm_var
 set if there was a valid variable in this cut
 

Friends

class NodeFactory
 

Detailed Description

template<class AVariableManager>
class Belle2::FunctionNode< AVariableManager >

FunctionNode Node class for handling MetaVariables in cuts.

Definition at line 1013 of file CutNodes.h.

Constructor & Destructor Documentation

◆ FunctionNode()

FunctionNode ( const std::string &  functionName,
const std::vector< std::string > &  functionArguments 
)
inlineexplicitprivate

Constructor.

Parameters
functionName(const std::string&): function name of the MetaVariable
functionArguments(const std::vector<std::string>&): function arguments of the MetaVariable

Definition at line 1077 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 1044 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 1027 of file CutNodes.h.


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