Belle II Software light-2406-ragdoll
|
UnaryExpressionNode Node class with a single expression node as child. More...
#include <CutNodes.h>
Public Types | |
typedef AVariableManager::Var | Var |
Template argument dependent Variable type definition. | |
Public Member Functions | |
AVariableManager::VarVariant | evaluate (const Object *p) const override |
Evaluation of the child nodes and return result as a variant<double, int, bool> return negative result if m_unary_minus true. | |
void | print () const override |
Print node. | |
std::string | decompile () const override |
Decompile Node back to a string. | |
~UnaryExpressionNode () | |
Destructor. | |
Private Types | |
typedef AbstractExpressionNode< AVariableManager >::Object | Object |
Template argument dependent Particle type definition. | |
Private Member Functions | |
UnaryExpressionNode (Nodetuple node, bool unary_minus, bool parenthesized) | |
Constructor. | |
Private Attributes | |
std::unique_ptr< const AbstractExpressionNode< AVariableManager > > | m_enode |
pointer to single expression node | |
const bool | m_unary_minus |
flag if expression evaluation should be returned times -1 | |
const bool | m_parenthesized |
flag if expression in cut was in parenthesis | |
Friends | |
class | NodeFactory |
UnaryExpressionNode Node class with a single expression node as child.
Used for unary minus signs and parenthesis conservation on decompiling cuts.
Definition at line 653 of file CutNodes.h.
|
private |
Template argument dependent Particle type definition.
Definition at line 657 of file CutNodes.h.
|
inherited |
Template argument dependent Variable type definition.
Definition at line 75 of file AbstractNodes.h.
|
inline |
|
inlineexplicitprivate |
Constructor.
node | (const boost::python::tuple&): tuple containing an expression node |
unary_minus | (bool): flag indicating if evaluate result should be multiplied by -1 |
parenthesized | (bool): flag indicating if expression in cut was in parenthesis |
Definition at line 711 of file CutNodes.h.
|
inlineoverridevirtual |
Decompile Node back to a string.
decompile(compile) should give the same result.
Implements AbstractExpressionNode< AVariableManager >.
Definition at line 689 of file CutNodes.h.
|
inlineoverridevirtual |
Evaluation of the child nodes and return result as a variant<double, int, bool> return negative result if m_unary_minus true.
p | pointer to the object, that should be checked. |
Implements AbstractExpressionNode< AVariableManager >.
Definition at line 664 of file CutNodes.h.
|
inlineoverridevirtual |
Print node.
Implements AbstractExpressionNode< AVariableManager >.
Definition at line 677 of file CutNodes.h.
|
friend |
Definition at line 704 of file CutNodes.h.
|
private |
pointer to single expression node
Definition at line 715 of file CutNodes.h.
|
private |
flag if expression in cut was in parenthesis
Definition at line 717 of file CutNodes.h.
|
private |
flag if expression evaluation should be returned times -1
Definition at line 716 of file CutNodes.h.