Hydra 0.20
desktop::LoadCacheBase< T, KEY > Class Template Reference

#include <LoadCache.h>

Inheritance diagram for desktop::LoadCacheBase< T, KEY >:

List of all members.

Public Types

typedef T data_type
typedef KEY key_type
typedef desktop::cache_ptr< T,
KEY > 
cache_ptr

Public Member Functions

 LoadCacheBase (size_t maxhold)
bool containsItem (const KEY &key) const
void insertItem (const KEY &key, const std::shared_ptr< T > &item)
desktop::cache_ptr< T, KEY > getItem (const KEY &key)

Protected Attributes

size_t dm_maxhold
size_t dm_curhold
std::map< KEY, LoadCacheEntry
< T, KEY > > 
dm_keymap
std::list< typename std::map
< KEY, LoadCacheEntry< T, KEY >
>::iterator > 
dm_dellist

Friends

class desktop::cache_ptr< T, KEY >

Detailed Description

template<class T, class KEY = QString>
class desktop::LoadCacheBase< T, KEY >

The LoaderCache foundation.

This version doesn't have the automatic loader type stuff.

Author:
Aleksander Demko

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables