#include <StripCompactDigiSimLinks.h>
Public Types | |
typedef std::map< key_type, std::vector< HitRecord > > | Map |
Public Member Functions | |
unsigned int | dataSize () const |
Filler () | |
void | insert (const key_type &key, const HitRecord &record) |
unsigned int | keySize () const |
const Map & | storage () const |
~Filler () | |
Private Attributes | |
unsigned int | num_keys_ |
unsigned int | num_values_ |
Map | storage_ |
Definition at line 37 of file StripCompactDigiSimLinks.h.
typedef std::map<key_type, std::vector<HitRecord> > StripCompactDigiSimLinks::Filler::Map |
Definition at line 46 of file StripCompactDigiSimLinks.h.
StripCompactDigiSimLinks::Filler::Filler | ( | ) | [inline] |
Definition at line 39 of file StripCompactDigiSimLinks.h.
: storage_(), num_keys_(0), num_values_(0) {}
StripCompactDigiSimLinks::Filler::~Filler | ( | ) |
Definition at line 31 of file StripCompactDigiSimLinks.cc.
{ }
unsigned int StripCompactDigiSimLinks::Filler::dataSize | ( | ) | const [inline] |
Definition at line 50 of file StripCompactDigiSimLinks.h.
References num_values_.
Referenced by StripCompactDigiSimLinks::StripCompactDigiSimLinks().
{ return num_values_; }
Definition at line 35 of file StripCompactDigiSimLinks.cc.
{ Filler::Map::iterator it = storage_.find(key); if (it == storage_.end()) { storage_.insert(std::make_pair(key, std::vector<HitRecord>(1,record))); num_keys_++; num_values_++; } else { it->second.push_back(record); num_values_++; } }
unsigned int StripCompactDigiSimLinks::Filler::keySize | ( | ) | const [inline] |
Definition at line 49 of file StripCompactDigiSimLinks.h.
References num_keys_.
Referenced by StripCompactDigiSimLinks::StripCompactDigiSimLinks().
{ return num_keys_; }
const Map& StripCompactDigiSimLinks::Filler::storage | ( | ) | const [inline] |
Definition at line 47 of file StripCompactDigiSimLinks.h.
References storage_.
Referenced by StripCompactDigiSimLinks::StripCompactDigiSimLinks().
{ return storage_; }
unsigned int StripCompactDigiSimLinks::Filler::num_keys_ [private] |
Definition at line 53 of file StripCompactDigiSimLinks.h.
Referenced by keySize().
unsigned int StripCompactDigiSimLinks::Filler::num_values_ [private] |
Definition at line 54 of file StripCompactDigiSimLinks.h.
Referenced by dataSize().
Definition at line 52 of file StripCompactDigiSimLinks.h.
Referenced by storage().