CMS 3D CMS Logo

TriggerExpressionConstant.h
Go to the documentation of this file.
1 #ifndef HLTrigger_HLTfilters_TriggerExpressionConstant_h
2 #define HLTrigger_HLTfilters_TriggerExpressionConstant_h
3 
5 
6 namespace triggerExpression {
7 
8 class Data;
9 
10 class Constant : public Evaluator {
11 public:
12  Constant(bool value) :
13  m_value(value)
14  { }
15 
16  bool operator()(const Data & data) const override {
17  return m_value;
18  }
19 
20  void init(const Data & data) override {
21  }
22 
23  void dump(std::ostream & out) const override {
24  out << (m_value ? "TRUE" : "FALSE");
25  }
26 
27 private:
28  bool m_value;
29 };
30 
31 } // namespace triggerExpression
32 
33 #endif // HLTrigger_HLTfilters_TriggerExpressionConstant_h
bool operator()(const Data &data) const override
void init(const Data &data) override
Definition: value.py:1
void dump(std::ostream &out) const override
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82