UT_ThreadSafeCache< Lock > Class Template Reference

#include <UT_ThreadSafeCache.h>

List of all members.

Classes

class  unsafe_traverser
class  UT_CacheItem

Public Member Functions

 UT_ThreadSafeCache (bool destroy=true)
 ~UT_ThreadSafeCache ()
void setMaxMemory (int64 size_mb, bool prune=false)
void setMaxMemoryBytes (int64 size_bytes, bool prune=false)
int64 getMaxMemoryBytes () const
int64 getMemoryUsage () const
int64 entries () const
void setUserData (void *data)
void setCheckMemoryLimit (bool check)
bool getCheckMemoryLimit () const
void access (UT_CacheItem *item, void *parms=0)
void accessUnreferenced (UT_CacheItem *item, void *parms=0)
 Re-order list because of access.
void release (UT_CacheItem *item)
void freeItem (UT_CacheItem *item)
void freeAllItems ()
void pruneItems (int64 memory_limit)
unsafe_traverser unsafe_begin () const
unsafe_traverser unsafe_end () const
int64 getFaults () const
 Query the cache misses.

Friends

class UT_LimitedCache


Detailed Description

template<class Lock>
class UT_ThreadSafeCache< Lock >

Definition at line 33 of file UT_ThreadSafeCache.h.


Constructor & Destructor Documentation

template<class Lock>
UT_ThreadSafeCache< Lock >::UT_ThreadSafeCache ( bool  destroy = true  ) 

template<class Lock>
UT_ThreadSafeCache< Lock >::~UT_ThreadSafeCache (  ) 


Member Function Documentation

template<class Lock>
void UT_ThreadSafeCache< Lock >::access ( UT_CacheItem item,
void *  parms = 0 
) [inline]

Definition at line 112 of file UT_ThreadSafeCache.h.

template<class Lock>
void UT_ThreadSafeCache< Lock >::accessUnreferenced ( UT_CacheItem item,
void *  parms = 0 
) [inline]

Re-order list because of access.

Definition at line 119 of file UT_ThreadSafeCache.h.

template<class Lock>
int64 UT_ThreadSafeCache< Lock >::entries ( void   )  const [inline]

Definition at line 95 of file UT_ThreadSafeCache.h.

template<class Lock>
void UT_ThreadSafeCache< Lock >::freeAllItems (  ) 

template<class Lock>
void UT_ThreadSafeCache< Lock >::freeItem ( UT_CacheItem item  ) 

template<class Lock>
bool UT_ThreadSafeCache< Lock >::getCheckMemoryLimit (  )  const [inline]

Definition at line 104 of file UT_ThreadSafeCache.h.

template<class Lock>
int64 UT_ThreadSafeCache< Lock >::getFaults (  )  const [inline]

Query the cache misses.

Definition at line 188 of file UT_ThreadSafeCache.h.

template<class Lock>
int64 UT_ThreadSafeCache< Lock >::getMaxMemoryBytes (  )  const [inline]

Definition at line 87 of file UT_ThreadSafeCache.h.

template<class Lock>
int64 UT_ThreadSafeCache< Lock >::getMemoryUsage ( void   )  const [inline]

Definition at line 92 of file UT_ThreadSafeCache.h.

template<class Lock>
void UT_ThreadSafeCache< Lock >::pruneItems ( int64  memory_limit  ) 

template<class Lock>
void UT_ThreadSafeCache< Lock >::release ( UT_CacheItem item  ) 

template<class Lock>
void UT_ThreadSafeCache< Lock >::setCheckMemoryLimit ( bool  check  )  [inline]

Definition at line 102 of file UT_ThreadSafeCache.h.

template<class Lock>
void UT_ThreadSafeCache< Lock >::setMaxMemory ( int64  size_mb,
bool  prune = false 
)

template<class Lock>
void UT_ThreadSafeCache< Lock >::setMaxMemoryBytes ( int64  size_bytes,
bool  prune = false 
)

template<class Lock>
void UT_ThreadSafeCache< Lock >::setUserData ( void *  data  )  [inline]

Definition at line 98 of file UT_ThreadSafeCache.h.

template<class Lock>
unsafe_traverser UT_ThreadSafeCache< Lock >::unsafe_begin (  )  const [inline]

Definition at line 182 of file UT_ThreadSafeCache.h.

template<class Lock>
unsafe_traverser UT_ThreadSafeCache< Lock >::unsafe_end (  )  const [inline]

Definition at line 184 of file UT_ThreadSafeCache.h.


Friends And Related Function Documentation

template<class Lock>
friend class UT_LimitedCache [friend]

Definition at line 231 of file UT_ThreadSafeCache.h.


The documentation for this class was generated from the following file:

Generated on Mon Jan 28 00:30:21 2013 for HDK by  doxygen 1.5.9