CMS 3D CMS Logo

L1MuDTSecProcMap.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
12 //
13 //--------------------------------------------------
14 #ifndef L1MUDT_SEC_PROC_MAP_H
15 #define L1MUDT_SEC_PROC_MAP_H
16 
17 //---------------
18 // C++ Headers --
19 //---------------
20 
21 #include <map>
22 #include <memory>
23 
24 //----------------------
25 // Base Class Headers --
26 //----------------------
27 
28 //------------------------------------
29 // Collaborating Class Declarations --
30 //------------------------------------
31 
34 
35 // ---------------------
36 // -- Class Interface --
37 // ---------------------
38 
40 public:
41  typedef std::map<L1MuDTSecProcId, std::unique_ptr<L1MuDTSectorProcessor>> SPmap;
42  typedef SPmap::iterator SPmap_iter;
43 
46 
49 
51  const L1MuDTSectorProcessor* sp(const L1MuDTSecProcId&) const;
52 
54  void insert(const L1MuDTSecProcId&, std::unique_ptr<L1MuDTSectorProcessor> sp);
55 
57  inline int size() const { return m_map.size(); }
58 
60  inline SPmap_iter begin() { return m_map.begin(); }
61 
63  inline SPmap_iter end() { return m_map.end(); }
64 
65 private:
67 };
68 
69 #endif
const L1MuDTSectorProcessor * sp(const L1MuDTSecProcId &) const
return pointer to Sector Processor
~L1MuDTSecProcMap()
destructor
int size() const
return number of entries present in the container
L1MuDTSecProcMap()
constructor
SPmap_iter end()
return iterator which points to the one-past-last entry of the container
void insert(const L1MuDTSecProcId &, std::unique_ptr< L1MuDTSectorProcessor > sp)
insert a Sector Processor into the container
std::map< L1MuDTSecProcId, std::unique_ptr< L1MuDTSectorProcessor > > SPmap
SPmap::iterator SPmap_iter
SPmap_iter begin()
return iterator which points to the first entry of the container