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

Nodeclass with a single AbstractExpressioNode as child. More...

#include <CutNodes.h>

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

Public Types

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

Public Member Functions

bool check (const Object *p) const override
 Evaluate the Expression Node child and assert that it is boolean. More...
 
void print () const override
 Print node.
 
std::string decompile () const override
 Decompile Node back to a string. More...
 
 ~UnaryRelationalNode ()
 Destructor.
 

Private Types

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

Private Member Functions

 UnaryRelationalNode (Nodetuple node)
 Constructor. More...
 

Private Attributes

std::unique_ptr< const AbstractExpressionNode< AVariableManager > > m_enode
 subexpression of a cut
 

Friends

class NodeFactory
 

Detailed Description

template<class AVariableManager>
class Belle2::UnaryRelationalNode< AVariableManager >

Nodeclass with a single AbstractExpressioNode as child.

Allows subexpressions consisting of a single boolean valued expression

Definition at line 351 of file CutNodes.h.

Constructor & Destructor Documentation

◆ UnaryRelationalNode()

UnaryRelationalNode ( Nodetuple  node)
inlineexplicitprivate

Constructor.

Parameters
node(const boost::python::tuple&) tuple containing an expression node

Definition at line 416 of file CutNodes.h.

Member Function Documentation

◆ check()

bool check ( const Object p) const
inlineoverridevirtual

Evaluate the Expression Node child and assert that it is boolean.

Parameters
ppointer to the object, that should be checked.

Implements AbstractBooleanNode< AVariableManager >.

Definition at line 361 of file CutNodes.h.

◆ decompile()

std::string decompile ( ) const
inlineoverridevirtual

Decompile Node back to a string.

decompile(compile) should give the same result.

Implements AbstractBooleanNode< AVariableManager >.

Definition at line 401 of file CutNodes.h.


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