Public Types | |
using | KeyType = int |
using | ValueType = RecHitsSortedInPhi |
Public Member Functions | |
void | add (KeyType key, ValueType *value) |
add object to cache. It is caller responsibility to check that object is not yet there. More... | |
void | clear () |
emptify cache, delete values associated to Key More... | |
void | extend (const SimpleCache &other) |
const ValueType * | get (KeyType key) const |
SimpleCache & | operator= (const SimpleCache &)=delete |
SimpleCache & | operator= (SimpleCache &&)=default |
void | resize (int size) |
SimpleCache (const SimpleCache &)=delete | |
SimpleCache (SimpleCache &&)=default | |
SimpleCache (unsigned int initSize) | |
~SimpleCache () | |
Private Attributes | |
std::vector< mayown_ptr< ValueType > > | theContainer |
Definition at line 16 of file LayerHitMapCache.h.
using LayerHitMapCache::SimpleCache::KeyType = int |
Definition at line 19 of file LayerHitMapCache.h.
Definition at line 18 of file LayerHitMapCache.h.
|
inline |
Definition at line 20 of file LayerHitMapCache.h.
|
delete |
|
default |
|
inline |
add object to cache. It is caller responsibility to check that object is not yet there.
Definition at line 29 of file LayerHitMapCache.h.
References crabWrapper::key, resize(), and theContainer.
Referenced by LayerHitMapCache::add(), and counter.Counter::register().
|
inline |
emptify cache, delete values associated to Key
Definition at line 51 of file LayerHitMapCache.h.
References theContainer, and findQualityFiles::v.
Referenced by LayerHitMapCache::clear(), and ~SimpleCache().
|
inline |
Definition at line 34 of file LayerHitMapCache.h.
References cms::cuda::assert(), get(), mps_fire::i, trackingPlots::other, resize(), findQualityFiles::size, theContainer, and findQualityFiles::v.
Referenced by MatrixUtil.WF::__init__(), and LayerHitMapCache::extend().
Definition at line 27 of file LayerHitMapCache.h.
References crabWrapper::key, and theContainer.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), extend(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), and LayerHitMapCache::operator()().
|
delete |
|
default |
|
inline |
Definition at line 26 of file LayerHitMapCache.h.
References findQualityFiles::size, and theContainer.
|
private |