Definition at line 27 of file bounded_cache.h.
Public Member Functions | |
BoundedCache (size_t max_sz, Evictor< Data > *evictor) | |
~BoundedCache () | |
Boolean | insert (const Key &key, const Data &data) |
Boolean | remove (const Key &key) |
Data * | find (const Key &key) |
const Data * | find (const Key &key) const |
size_t | size () const |
size_t | max () const |
void | max (size_t max_sz) |
Private Types | |
typedef IT_HashMap< Key, Data, HashFn, Equal > | HashMap |
typedef IT_TYPENAME HashMap::iterator | MapIterator |
typedef IT_Pair< Data, const Key * > | DataKeyPair |
typedef IT_List< DataKeyPair > | Queue |
typedef IT_TYPENAME Queue::iterator | QueueIterator |
Private Member Functions | |
void | enforce_max () |
Private Attributes | |
HashMap | m_map |
Queue | m_queue |
Evictor< Data > * | m_evictor |
size_t | m_max |