5#ifndef MUONTGC_CABLING_TGCMODULEMAP_HH
6#define MUONTGC_CABLING_TGCMODULEMAP_HH
17 using Store_t = std::map<int, std::unique_ptr<TGCModuleId>>;
29 Store_t::const_iterator
begin()
const;
31 Store_t::const_iterator
end()
const;
33 Store_t::iterator
begin();
35 Store_t::iterator
end();
41 std::unique_ptr<TGCModuleId>
popModule(
const int connector);
43 void insert(
int connector, std::unique_ptr<TGCModuleId> moduleId);
45 std::size_t
size()
const;
Store_t::const_iterator end() const
Returns the end iterator of the underlying map.
TGCModuleMap & operator=(const TGCModuleMap &other)=delete
Copy assignment operator.
TGCModuleMap(TGCModuleMap &&other)=default
Move constructor.
std::map< int, std::unique_ptr< TGCModuleId > > Store_t
TGCModuleMap(const TGCModuleMap &)=delete
Copy constructor.
Store_t::const_iterator begin() const
Returns the begin iterator of the underlying map.
TGCModuleMap & operator=(TGCModuleMap &&other)=default
Move assignment operator.
void insert(int connector, std::unique_ptr< TGCModuleId > moduleId)
std::unique_ptr< TGCModuleId > popModule(const int connector)
Return a certain module and remove it from the map.