IT_Bus::BoundedCache< Key, Data, HashFn, Equal > Class Template Reference

List of all members.

Detailed Description

template<class Key, class Data, class HashFn, class Equal>
class IT_Bus::BoundedCache< Key, Data, HashFn, Equal >

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< DataKeyPairQueue
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


Generated on Tue Mar 20 15:28:11 2007 for Artix by  doxygen 1.5.1-p1