CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Counters.h
Go to the documentation of this file.
1 #ifndef Alignment_CommonAlignment_Counters_H
2 #define Alignment_CommonAlignment_Counters_H
3 
19 #include <map>
20 
23 
24 namespace align
25 {
26  typedef unsigned int (*Counter)(align::ID);
27 }
28 
29 class Counters
30 {
31  public:
32 
34  Counters() {}
35 
36  virtual ~Counters() {}
37 
39  virtual align::Counter get( align::StructureType ) const;
40 
41 protected:
42  std::map<align::StructureType, align::Counter> theCounters;
43 
44 };
45 
46 #endif
uint32_t ID
Definition: Definitions.h:26
std::map< align::StructureType, align::Counter > theCounters
Definition: Counters.h:42
unsigned int(* Counter)(align::ID)
Definition: Counters.h:26
Counters()
Build the counters map.
Definition: Counters.h:34
virtual ~Counters()
Definition: Counters.h:36