CatapultServer
v0.5.0.1 (Elephant)
|
A read-only overlay on top of a cache that provides support for contains. More...
Public Member Functions | |
ReadOnlySimpleCache (const TCache &cache) | |
Creates a read-only overlay on top of cache. More... | |
ReadOnlySimpleCache (const TCacheDelta &cache) | |
Creates a read-only overlay on top of cache. More... | |
size_t | size () const |
Returns the number of elements in the cache. More... | |
bool | contains (const TKey &key) const |
Private Attributes | |
const TCache * | m_pCache |
const TCacheDelta * | m_pCacheDelta |
A read-only overlay on top of a cache that provides support for contains.
|
inlineexplicit |
Creates a read-only overlay on top of cache.
|
inlineexplicit |
Creates a read-only overlay on top of cache.
|
inline |
Searches for the given key in the cache. Returns true
if it is found or false
otherwise.
|
inline |
Returns the number of elements in the cache.
|
private |
|
private |