CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

StripCompactDigiSimLinks::Filler Class Reference

#include <StripCompactDigiSimLinks.h>

List of all members.

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]

Definition at line 39 of file StripCompactDigiSimLinks.h.

StripCompactDigiSimLinks::Filler::~Filler ( )

Definition at line 31 of file StripCompactDigiSimLinks.cc.

                                        {
}

Member Function Documentation

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_; }
void StripCompactDigiSimLinks::Filler::insert ( const key_type key,
const HitRecord record 
)

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_; }

Member Data Documentation

Definition at line 53 of file StripCompactDigiSimLinks.h.

Referenced by keySize().

Definition at line 54 of file StripCompactDigiSimLinks.h.

Referenced by dataSize().

Definition at line 52 of file StripCompactDigiSimLinks.h.

Referenced by storage().