Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:36:15

0001 #ifndef CommonTools_Utils_IntSetter_h
0002 #define CommonTools_Utils_IntSetter_h
0003 /* \class reco::parser::IntSetter
0004  *
0005  * Integer setter
0006  *
0007  * \author  Luca Lista, INFN
0008  *
0009  * \version $Revision: 1.1 $
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   }  // namespace parser
0024 }  // namespace reco
0025 
0026 #endif