IntSetter

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#ifndef CommonTools_Utils_IntSetter_h
#define CommonTools_Utils_IntSetter_h
/* \class reco::parser::IntSetter
 *
 * Integer setter
 *
 * \author  Luca Lista, INFN
 *
 * \version $Revision: 1.1 $
 *
 */
#include "CommonTools/Utils/interface/parser/IntStack.h"

namespace reco {
  namespace parser {
    struct IntSetter {
      IntSetter(IntStack& stack) : stack_(stack) {}
      void operator()(int n) const { stack_.push_back(n); }

    private:
      IntStack& stack_;
    };
  }  // namespace parser
}  // namespace reco

#endif