CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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) : m_value(value) {}
13 
14  bool operator()(const Data& data) const override { return m_value; }
15 
16  void dump(std::ostream& out) const override { out << (m_value ? "TRUE" : "FALSE"); }
17 
18  private:
19  bool m_value;
20  };
21 
22 } // namespace triggerExpression
23 
24 #endif // HLTrigger_HLTfilters_TriggerExpressionConstant_h
void dump(std::ostream &out) const override
bool operator()(const Data &data) const override
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79