Helper class for SpectrumLoaderBase. More...
#include <SpectrumLoaderBase.h>
Public Types | |
typedef std::vector< std::pair < T, U > >::iterator | it_t |
Public Member Functions | |
U & | operator[] (const T &key) |
it_t | begin () |
it_t | end () |
template<class V > | |
void | Erase (const V &v) |
void | RemoveLoader (SpectrumLoaderBase *l) |
void | Clear () |
size_t | TotalSize () |
void | GetSpectra (std::vector< Spectrum * > &ss) |
void | GetReweightableSpectra (std::vector< ReweightableSpectrum * > &ss) |
Protected Attributes | |
std::vector< std::pair< T, U > > | fElems |
Helper class for SpectrumLoaderBase.
Functions like std::map<T, U> except it should be faster to iterate through the elements (while slower to fill) and it knows to compare Ts via their ID() function. Various methods that forward through to the SpectList at the end of the chain.
Definition at line 157 of file SpectrumLoaderBase.h.
typedef std::vector<std::pair<T, U> >::iterator ana::SpectrumLoaderBase::IDMap< T, U >::it_t |
Definition at line 162 of file SpectrumLoaderBase.h.
|
inline |
Definition at line 163 of file SpectrumLoaderBase.h.
void ana::SpectrumLoaderBase::IDMap< T, U >::Clear | ( | ) |
Definition at line 91 of file SpectrumLoaderBase.cxx.
|
inline |
Definition at line 164 of file SpectrumLoaderBase.h.
void ana::SpectrumLoaderBase::IDMap< T, U >::Erase | ( | const V & | v | ) |
Definition at line 78 of file SpectrumLoaderBase.cxx.
void ana::SpectrumLoaderBase::IDMap< T, U >::GetReweightableSpectra | ( | std::vector< ReweightableSpectrum * > & | ss | ) |
Definition at line 114 of file SpectrumLoaderBase.cxx.
void ana::SpectrumLoaderBase::IDMap< T, U >::GetSpectra | ( | std::vector< Spectrum * > & | ss | ) |
Definition at line 107 of file SpectrumLoaderBase.cxx.
U & ana::SpectrumLoaderBase::IDMap< T, U >::operator[] | ( | const T & | key | ) |
Definition at line 68 of file SpectrumLoaderBase.cxx.
void ana::SpectrumLoaderBase::IDMap< T, U >::RemoveLoader | ( | SpectrumLoaderBase * | l | ) |
Definition at line 85 of file SpectrumLoaderBase.cxx.
size_t ana::SpectrumLoaderBase::IDMap< T, U >::TotalSize | ( | ) |
Definition at line 98 of file SpectrumLoaderBase.cxx.
|
protected |
Definition at line 173 of file SpectrumLoaderBase.h.