CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
triggerExpression::Constant Class Reference

#include <TriggerExpressionConstant.h>

Inheritance diagram for triggerExpression::Constant:
triggerExpression::Evaluator

Public Member Functions

 Constant (bool value)
 
void dump (std::ostream &out) const override
 
void init (const Data &data) override
 
bool operator() (const Data &data) const override
 
- Public Member Functions inherited from triggerExpression::Evaluator
 Evaluator ()
 
virtual ~Evaluator ()
 

Private Attributes

bool m_value
 

Detailed Description

Definition at line 10 of file TriggerExpressionConstant.h.

Constructor & Destructor Documentation

◆ Constant()

triggerExpression::Constant::Constant ( bool  value)
inline

Definition at line 12 of file TriggerExpressionConstant.h.

12 : m_value(value) {}

Member Function Documentation

◆ dump()

void triggerExpression::Constant::dump ( std::ostream &  out) const
inlineoverridevirtual

Implements triggerExpression::Evaluator.

Definition at line 18 of file TriggerExpressionConstant.h.

18 { out << (m_value ? "TRUE" : "FALSE"); }

References m_value, and MillePedeFileConverter_cfg::out.

◆ init()

void triggerExpression::Constant::init ( const Data data)
inlineoverridevirtual

Reimplemented from triggerExpression::Evaluator.

Definition at line 16 of file TriggerExpressionConstant.h.

16 {}

◆ operator()()

bool triggerExpression::Constant::operator() ( const Data data) const
inlineoverridevirtual

Implements triggerExpression::Evaluator.

Definition at line 14 of file TriggerExpressionConstant.h.

14 { return m_value; }

References m_value.

Member Data Documentation

◆ m_value

bool triggerExpression::Constant::m_value
private

Definition at line 21 of file TriggerExpressionConstant.h.

Referenced by dump(), and operator()().

value
Definition: value.py:1
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
triggerExpression::Constant::m_value
bool m_value
Definition: TriggerExpressionConstant.h:21