HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_LRUCache.h File Reference
#include "UT_Assert.h"
#include "UT_Function.h"
#include "UT_IteratorRange.h"
#include "UT_NonCopyable.h"
#include <SYS/SYS_Types.h>
#include <SYS/SYS_TypeTraits.h>
#include <list>
#include <type_traits>
#include <unordered_map>
+ Include dependency graph for UT_LRUCache.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  UT::RWNullLock
 
class  UT_LRUCache< K, V, SizeFunc, InUseFunc, L >
 
class  UT_LRUCache< K, V, SizeFunc, InUseFunc, L >::iterator_base< PROXIED, TYPE >
 

Namespaces

 UT
 

Functions

template<typename V >
exint UTlruGetItemSize (const V &)
 
template<typename V >
bool UTlruGetItemInUse (const V &)
 

Function Documentation

template<typename V >
bool UTlruGetItemInUse ( const V &  )
inline

A default helper function used by UT_LRUCache to determine whether an object is currently in use and so should not be deleted when the cache gets pruned.

Definition at line 59 of file UT_LRUCache.h.

template<typename V >
exint UTlruGetItemSize ( const V &  )
inline

A default helper function used by UT_LRUCache to determine the size of the objects it stores to help prune the storage so that it doesn't exceed the maximum given in the constructor.

Definition at line 46 of file UT_LRUCache.h.