CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ExpressionBinaryOperatorSetter.h
Go to the documentation of this file.
1 #ifndef CommonTools_Utils_ExpressionBinaryOperatorSetter_h
2 #define CommonTools_Utils_ExpressionBinaryOperatorSetter_h
3 /* \class reco::parser::ExpressionBinaryOperator
4  *
5  * Binary operator expression setter
6  *
7  * \author original version: Chris Jones, Cornell,
8  * adapted to Reflex by Luca Lista, INFN
9  *
10  * \version $Revision: 1.3 $
11  *
12  */
15 #include <cmath>
16 
17 namespace reco {
18  namespace parser {
19 
20  template<typename T>
21  struct power_of {
22  T operator()(T lhs, T rhs) const { return pow(lhs, rhs); }
23  };
24 
25  template<typename Op>
28  void operator()(const char*, const char*) const {
30  }
31  private:
33  };
34  }
35 }
36 
37 #endif
boost::shared_ptr< ExpressionBase > ExpressionPtr
std::vector< boost::shared_ptr< ExpressionBase > > ExpressionStack
stack
Definition: svgfig.py:558
void operator()(const char *, const char *) const
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40