CMS 3D CMS Logo

L1MuBMSecProcMap.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
12 //
13 //--------------------------------------------------
14 #ifndef L1MUBM_SEC_PROC_MAP_H
15 #define L1MUBM_SEC_PROC_MAP_H
16 
17 //---------------
18 // C++ Headers --
19 //---------------
20 
21 #include <map>
22 
23 //----------------------
24 // Base Class Headers --
25 //----------------------
26 
27 //------------------------------------
28 // Collaborating Class Declarations --
29 //------------------------------------
30 
32 
34 
35 // ---------------------
36 // -- Class Interface --
37 // ---------------------
38 
40 
41  public:
42 
43  typedef std::map<L1MuBMSecProcId, L1MuBMSectorProcessor*, std::less<L1MuBMSecProcId> > SPmap;
44  typedef SPmap::iterator SPmap_iter;
45 
48 
50  virtual ~L1MuBMSecProcMap();
51 
54 
57 
59  inline int size() const { return m_map.size(); }
60 
62  inline SPmap_iter begin() { return m_map.begin(); }
63 
65  inline SPmap_iter end() { return m_map.end(); }
66 
67  private:
68 
69  SPmap m_map;
70 
71 };
72 
73 #endif
L1MuBMSectorProcessor * sp(const L1MuBMSecProcId &) const
return pointer to Sector Processor
L1MuBMSecProcMap()
constructor
SPmap::iterator SPmap_iter
int size() const
return number of entries present in the container
SPmap_iter begin()
return iterator which points to the first entry of the container
void insert(const L1MuBMSecProcId &, L1MuBMSectorProcessor *sp)
insert a Sector Processor into the container
std::map< L1MuBMSecProcId, L1MuBMSectorProcessor *, std::less< L1MuBMSecProcId > > SPmap
virtual ~L1MuBMSecProcMap()
destructor
SPmap_iter end()
return iterator which points to the one-past-last entry of the container