8 #ifndef _H_SQSpillMap_v1_H_
9 #define _H_SQSpillMap_v1_H_
27 void identify(std::ostream& os = std::cout)
const;
32 bool empty()
const {
return _map.empty();}
33 size_t size()
const {
return _map.size();}
34 size_t count(
unsigned int idkey)
const {
return _map.count(idkey);}
37 const SQSpill*
get(
unsigned int idkey)
const;
38 SQSpill*
get(
unsigned int idkey);
40 size_t erase(
unsigned int idkey) {
41 delete _map[idkey];
return _map.erase(idkey);
49 Iter find(
unsigned int idkey) {
return _map.find(idkey);}
std::map< unsigned int, SQSpill * >::const_iterator ConstIter
Iter begin()
Return the begin iterator.
SQSpill * insert(const SQSpill *hit)
Insert the given SQSpill object.
Iter find(unsigned int idkey)
Return the iterator of the SQSpill entry having spill ID = 'idkey'.
int isValid() const
isValid returns non zero if object contains vailid data
void clear()
Clear the list.
size_t erase(unsigned int idkey)
Erase the SQSpill entry having spill ID = 'idkey'.
An SQ interface class to hold the data of one spill.
std::map< unsigned int, SQSpill * > SpillMap
SQSpillMap * Clone() const
SQSpillMap_v1 & operator=(const SQSpillMap_v1 &hitmap)
ConstIter end() const
Return the const end iterator.
ConstIter find(unsigned int idkey) const
Return the const iterator of the SQSpill entry having spill ID = 'idkey'.
std::map< unsigned int, SQSpill * >::iterator Iter
size_t size() const
Return the number of spills held.
bool empty() const
Return 'true' if this object holds no spill.
An SQ interface class to hold a list of SQSpill objects.
ConstIter begin() const
Return the const begin iterator.
void identify(std::ostream &os=std::cout) const
size_t count(unsigned int idkey) const
Return the number of spills having spill ID = 'idkey'. Must be '0' or '1'.
Iter end()
Return the end iterator.