ARB
|
Cache for any SmartPtr type. More...
#include <cache.h>
Public Member Functions | |
Cache (size_t Size) | |
~Cache () | |
size_t | entries () const |
size_t | size () const |
void | resize (size_t new_size) |
void | flush () |
flush the cache, i.e. uncache all elements More... | |
Friends | |
class | CacheHandle< SMARTPTR > |
|
inline |
|
inline |
destroy the Cache
Will invalidate all CacheHandles assigned to this Cache.
|
inline |
|
inline |
Definition at line 209 of file cache.h.
Referenced by cache::Cache< SmartCharPtr >::~Cache().
|
inline |
change the size of the Cache.
new_size | specifies the number of cache entries (as in constructor) |
Definition at line 214 of file cache.h.
Referenced by probe_input_data::set_cache_sizes().
|
inline |
flush the cache, i.e. uncache all elements
Definition at line 220 of file cache.h.
Referenced by cache::Cache< SmartCharPtr >::~Cache().
|
friend |