CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ExpressionUnaryOperatorSetter.h
Go to the documentation of this file.
1 #ifndef CommonTools_Utils_ExpressionUnaryOperatorSetter_h
2 #define CommonTools_Utils_ExpressionUnaryOperatorSetter_h
3 /* \class reco::parser::ExpressionUnaryOperator
4  *
5  * Unary Operator expression setter
6  *
7  * \author original version: Chris Jones, Cornell,
8  * adapted by Luca Lista, INFN
9  *
10  * \version $Revision: 1.2 $
11  *
12  */
15 #ifdef BOOST_SPIRIT_DEBUG
16 #include <string>
17 #include <iostream>
18 #endif
19 namespace reco {
20  namespace parser {
21 
22 #ifdef BOOST_SPIRIT_DEBUG
23  template <typename Op>
24  struct op1_out {
25  static const std::string value;
26  };
27 #endif
28 
29  template <typename Op>
32  void operator()(const char*, const char*) const {
33 #ifdef BOOST_SPIRIT_DEBUG
34  BOOST_SPIRIT_DEBUG_OUT << "pushing unary operator" << op1_out<Op>::value << std::endl;
35 #endif
37  }
38 
39  private:
41  };
42  } // namespace parser
43 } // namespace reco
44 
45 #endif
void operator()(const char *, const char *) const
std::shared_ptr< ExpressionBase > ExpressionPtr
std::vector< std::shared_ptr< ExpressionBase > > ExpressionStack
stack
Definition: svgfig.py:559