CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 26 of file StripCompactDigiSimLinks.cc.

26 {}

Member Function Documentation

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

Definition at line 28 of file StripCompactDigiSimLinks.cc.

Referenced by BeautifulSoup.PageElement::_invert(), and SequenceTypes.Schedule::_replaceIfHeldDirectly().

29  {
30  Filler::Map::iterator it = storage_.find(key);
31  if (it == storage_.end()) {
32  storage_.insert(std::make_pair(key, std::vector<HitRecord>(1, record)));
33  num_keys_++;
34  num_values_++;
35  } else {
36  it->second.push_back(record);
37  num_values_++;
38  }
39 }
tuple key
prepare the HTCondor submission files and eventually submit them
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 54 of file StripCompactDigiSimLinks.h.

Referenced by keySize().

unsigned int StripCompactDigiSimLinks::Filler::num_values_
private

Definition at line 55 of file StripCompactDigiSimLinks.h.

Referenced by dataSize().

Map StripCompactDigiSimLinks::Filler::storage_
private

Definition at line 53 of file StripCompactDigiSimLinks.h.

Referenced by storage().