LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
MaybeIncrementCounts.h
Go to the documentation of this file.
1 #ifndef art_Framework_Principal_MaybeIncrementCounts_h
2 #define art_Framework_Principal_MaybeIncrementCounts_h
3 
6 
7 namespace art {
8  template <Level, typename T>
10  public:
12 
13  template <typename... ARGS>
14  void
16  {}
17  void
18  update(bool const)
19  {}
20  };
21 
22  template <typename T>
24  public:
25  MaybeIncrementCounts(T& t) : t_{t} {}
26 
27  template <typename... ARGS>
28  void
30  {
31  t_.template increment<ARGS...>();
32  }
33  void
34  update(bool const rc)
35  {
36  t_.update(rc);
37  }
38 
39  private:
40  T& t_;
41  };
42 }
43 
44 #endif /* art_Framework_Principal_MaybeIncrementCounts_h */
45 
46 // Local variables:
47 // mode: c++
48 // End:
Level
Definition: Level.h:12
HLT enums.