Template class for storing the Constants (int, double, bool) of the Cutstring.
More...
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.
template<class AVariableManager, typename T>
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.
924 {
925 std::stringstream stringstream;
926 stringstream << std::boolalpha;
927 stringstream << m_value;
928 return stringstream.str();
929 }
template<class AVariableManager, typename T>
AVariableManager::VarVariant evaluate |
( |
const Object * | p | ) |
const |
|
inlineoverridevirtual |
return m_value as a variant<double, int, bool>
- Parameters
-
p | pointer 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.
905 {
906 (void)p;
907 typename AVariableManager::VarVariant ret{m_value};
908 return ret;
909 }