CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MethodSetter.h
Go to the documentation of this file.
1 #ifndef CommonTools_Utils_MethodSetter_h
2 #define CommonTools_Utils_MethodSetter_h
3 /* \class reco::parser::MethodSetter
4  *
5  * \author Luca Lista, INFN
6  *
7  * \version $Id: MethodSetter.h,v 1.4 2012/06/26 21:13:13 wmtan Exp $
8  */
12 
13 namespace reco {
14  namespace parser {
15  struct MethodSetter {
16  explicit MethodSetter(MethodStack & methStack, LazyMethodStack & lazyMethStack, TypeStack & typeStack,
17  MethodArgumentStack & intStack, bool lazy=false) :
18  methStack_(methStack), lazyMethStack_(lazyMethStack), typeStack_(typeStack),
19  intStack_(intStack), lazy_(lazy) { }
20  void operator()(const char *, const char *) const;
34  bool push(const std::string&, const std::vector<AnyMethodArgument>&,const char*,bool deep=true) const;
35  private:
40  bool lazy_;
41  };
42  }
43 }
44 
45 #endif
bool push(const std::string &, const std::vector< AnyMethodArgument > &, const char *, bool deep=true) const
Definition: MethodSetter.cc:43
std::vector< edm::TypeWithDict > TypeStack
Definition: TypeStack.h:17
MethodSetter(MethodStack &methStack, LazyMethodStack &lazyMethStack, TypeStack &typeStack, MethodArgumentStack &intStack, bool lazy=false)
Definition: MethodSetter.h:16
std::vector< AnyMethodArgument > MethodArgumentStack
std::vector< LazyInvoker > LazyMethodStack
Definition: MethodStack.h:18
void operator()(const char *, const char *) const
Definition: MethodSetter.cc:11
MethodArgumentStack & intStack_
Definition: MethodSetter.h:39
LazyMethodStack & lazyMethStack_
Definition: MethodSetter.h:37
std::vector< MethodInvoker > MethodStack
Definition: MethodStack.h:17