00001 #ifndef Utilities_ExpressionVarSetter_h 00002 #define Utilities_ExpressionVarSetter_h 00003 /* \class reco::parser::ExpressionNumber 00004 * 00005 * Numerical expression setter 00006 * 00007 * \author original version: Chris Jones, Cornell, 00008 * adapted to Reflex by Luca Lista, INFN 00009 * 00010 * \version $Revision: 1.3 $ 00011 * 00012 */ 00013 #include "PhysicsTools/Utilities/src/ExpressionStack.h" 00014 #include "PhysicsTools/Utilities/src/MethodStack.h" 00015 #include "PhysicsTools/Utilities/src/TypeStack.h" 00016 00017 namespace reco { 00018 namespace parser { 00019 struct ExpressionVarSetter { 00020 ExpressionVarSetter(ExpressionStack & exprStack, 00021 MethodStack & methStack, 00022 TypeStack & typeStack) : 00023 exprStack_(exprStack), 00024 methStack_(methStack), 00025 typeStack_(typeStack) { } 00026 void operator()(const char *, const char *) const; 00027 private: 00028 ExpressionStack & exprStack_; 00029 MethodStack & methStack_; 00030 TypeStack & typeStack_; 00031 }; 00032 } 00033 } 00034 00035 #endif