CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
StripCompactDigiSimLinks::Filler Class Reference

#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 Mapstorage () const
 
 ~Filler ()
 

Private Attributes

unsigned int num_keys_
 
unsigned int num_values_
 
Map storage_
 

Detailed Description

Definition at line 37 of file StripCompactDigiSimLinks.h.

Member Typedef Documentation

typedef std::map<key_type, std::vector<HitRecord> > StripCompactDigiSimLinks::Filler::Map

Definition at line 46 of file StripCompactDigiSimLinks.h.

Constructor & Destructor Documentation

StripCompactDigiSimLinks::Filler::Filler ( )
inline
StripCompactDigiSimLinks::Filler::~Filler ( )

Definition at line 31 of file StripCompactDigiSimLinks.cc.

31  {
32 }

Member Function Documentation

unsigned int StripCompactDigiSimLinks::Filler::dataSize ( ) const
inline
void StripCompactDigiSimLinks::Filler::insert ( const key_type key,
const HitRecord record 
)

Definition at line 35 of file StripCompactDigiSimLinks.cc.

Referenced by BeautifulSoup.PageElement::_invert().

36 {
37  Filler::Map::iterator it = storage_.find(key);
38  if (it == storage_.end()) {
39  storage_.insert(std::make_pair(key, std::vector<HitRecord>(1,record)));
40  num_keys_++;
41  num_values_++;
42  } else {
43  it->second.push_back(record);
44  num_values_++;
45  }
46 }
list key
Definition: combine.py:13
unsigned int StripCompactDigiSimLinks::Filler::keySize ( ) const
inline
const Map& StripCompactDigiSimLinks::Filler::storage ( ) const
inline

Member Data Documentation

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().

Map StripCompactDigiSimLinks::Filler::storage_
private

Definition at line 52 of file StripCompactDigiSimLinks.h.

Referenced by storage().