CMS 3D CMS Logo

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 by Luca Lista, INFN
9  *
10  * \version $Revision: 1.2 $
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 
32  private:
34  };
35  } // namespace parser
36 } // namespace reco
37 
38 #endif
writedatasetfile.parser
parser
Definition: writedatasetfile.py:7
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::parser::ExpressionBinaryOperatorSetter::stack_
ExpressionStack & stack_
Definition: ExpressionBinaryOperatorSetter.h:33
reco::parser::ExpressionBinaryOperatorSetter::ExpressionBinaryOperatorSetter
ExpressionBinaryOperatorSetter(ExpressionStack &stack)
Definition: ExpressionBinaryOperatorSetter.h:27
ExpressionStack.h
reco::parser::ExpressionBinaryOperatorSetter::operator()
void operator()(const char *, const char *) const
Definition: ExpressionBinaryOperatorSetter.h:28
svgfig.stack
stack
Definition: svgfig.py:559
reco::parser::ExpressionBinaryOperator
Definition: ExpressionBinaryOperator.h:19
reco::parser::ExpressionPtr
std::shared_ptr< ExpressionBase > ExpressionPtr
Definition: ExpressionBase.h:25
reco::parser::ExpressionBinaryOperatorSetter
Definition: ExpressionBinaryOperatorSetter.h:26
reco::parser::power_of::operator()
T operator()(T lhs, T rhs) const
Definition: ExpressionBinaryOperatorSetter.h:22
T
long double T
Definition: Basic3DVectorLD.h:48
reco::parser::ExpressionStack
std::vector< std::shared_ptr< ExpressionBase > > ExpressionStack
Definition: ExpressionStack.h:19
ExpressionBinaryOperator.h
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29