Public Member Functions | |
void | add (const KeyType &key, const ValueType *value) |
add object to cache. It is caller responsibility to check that object is not yet there. More... | |
virtual void | clear () |
emptify cache, delete values associated to Key More... | |
const ValueType * | get (const KeyType &key) |
void | reserve (int size) |
SimpleCache (int initSize) | |
virtual | ~SimpleCache () |
Protected Types | |
typedef std::vector < KeyValuePair > ::const_iterator | ConstItr |
typedef std::pair< KeyType, const ValueType * > | KeyValuePair |
Protected Attributes | |
std::vector< KeyValuePair > | theContainer |
Private Member Functions | |
SimpleCache (const SimpleCache &) | |
Definition at line 18 of file LayerHitMapCache.h.
|
protected |
Definition at line 41 of file LayerHitMapCache.h.
|
protected |
Definition at line 39 of file LayerHitMapCache.h.
|
inline |
Definition at line 20 of file LayerHitMapCache.h.
References LayerHitMapCache::SimpleCache< KeyType, ValueType >::reserve().
|
inlinevirtual |
Definition at line 21 of file LayerHitMapCache.h.
References LayerHitMapCache::SimpleCache< KeyType, ValueType >::clear().
|
inlineprivate |
Definition at line 43 of file LayerHitMapCache.h.
|
inline |
add object to cache. It is caller responsibility to check that object is not yet there.
Definition at line 30 of file LayerHitMapCache.h.
References LayerHitMapCache::SimpleCache< KeyType, ValueType >::theContainer.
Referenced by LayerHitMapCache::operator()().
|
inlinevirtual |
emptify cache, delete values associated to Key
Definition at line 34 of file LayerHitMapCache.h.
References i, and LayerHitMapCache::SimpleCache< KeyType, ValueType >::theContainer.
Referenced by LayerHitMapCache::clear(), and LayerHitMapCache::SimpleCache< KeyType, ValueType >::~SimpleCache().
|
inline |
Definition at line 23 of file LayerHitMapCache.h.
References combine::key, and LayerHitMapCache::SimpleCache< KeyType, ValueType >::theContainer.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), and LayerHitMapCache::operator()().
|
inline |
Definition at line 22 of file LayerHitMapCache.h.
References LayerHitMapCache::SimpleCache< KeyType, ValueType >::theContainer.
Referenced by LayerHitMapCache::SimpleCache< KeyType, ValueType >::SimpleCache().
|
protected |
Definition at line 40 of file LayerHitMapCache.h.
Referenced by LayerHitMapCache::SimpleCache< KeyType, ValueType >::add(), LayerHitMapCache::SimpleCache< KeyType, ValueType >::clear(), LayerHitMapCache::SimpleCache< KeyType, ValueType >::get(), and LayerHitMapCache::SimpleCache< KeyType, ValueType >::reserve().