File indexing completed on 2024-04-06 12:01:17
0001 #ifndef CommonTools_Utils_IntSetter_h
0002 #define CommonTools_Utils_IntSetter_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #include "CommonTools/Utils/interface/parser/IntStack.h"
0013
0014 namespace reco {
0015 namespace parser {
0016 struct IntSetter {
0017 IntSetter(IntStack& stack) : stack_(stack) {}
0018 void operator()(int n) const { stack_.push_back(n); }
0019
0020 private:
0021 IntStack& stack_;
0022 };
0023 }
0024 }
0025
0026 #endif