CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CombinerSetter.h
Go to the documentation of this file.
1 #ifndef CommonTools_Utils_CombinerSetter_h
2 #define CommonTools_Utils_CombinerSetter_h
3 /* \class reco::parser::CombinerSetter
4  *
5  * Combiner setter
6  *
7  * \author original version: Chris Jones, Cornell,
8  * adapted to Reflex by Luca Lista, INFN
9  *
10  * \version $Revision: 1.1 $
11  *
12  */
13 #include "CommonTools/Utils/src/Combiner.h"
14 #include "CommonTools/Utils/src/CombinerStack.h"
15 
16 namespace reco {
17  namespace parser {
18  struct CombinerSetter {
19  CombinerSetter(Combiner comb, CombinerStack& stack):
20  comb_(comb), stack_(stack) {}
21 
22  void operator()(const char * const &, const char * const &) const {
23  stack_.push_back(comb_);
24  }
25  void operator()(const char &) const {
26  stack_.push_back(comb_);
27  }
28  private:
29  Combiner comb_;
30  CombinerStack & stack_;
31  };
32  }
33 }
34 
35 #endif
void operator()(const char *const &, const char *const &) const
dictionary comb
stack
Definition: svgfig.py:558
CombinerSetter(Combiner comb, CombinerStack &stack)
void operator()(const char &) const