CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/CommonTools/Utils/src/IntSetter.h

Go to the documentation of this file.
00001 #ifndef CommonTools_Utils_IntSetter_h
00002 #define CommonTools_Utils_IntSetter_h
00003 /* \class reco::parser::IntSetter
00004  *
00005  * Integer setter
00006  *
00007  * \author  Luca Lista, INFN
00008  *
00009  * \version $Revision: 1.1 $
00010  *
00011  */
00012 #include "CommonTools/Utils/src/IntStack.h"
00013 
00014 namespace reco {
00015   namespace parser {
00016     struct IntSetter {
00017       IntSetter( IntStack & stack ) : stack_( stack ) { }
00018       void operator()(int n) const {
00019         stack_.push_back(n);
00020       }
00021     private:
00022       IntStack & stack_;
00023     };
00024   }
00025 }
00026 
00027 #endif