Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Containers/LruCache.h |
Include |
#include "Containers/LruCache.h" |
template<typename KeyType, typename ValueType, typename KeyComp>
class TLruCache
Implements a Least Recently Used (LRU) cache.
Name | Description | |
---|---|---|
|
TLruCache() |
Default constructor (empty cache that cannot hold any values). |
|
TLruCache ( |
Create and initialize a new instance. |
Name | Description | |
---|---|---|
|
~TLruCache() |
Destructor. |
Name | Description | ||
---|---|---|---|
|
Add ( |
Add an entry to the cache. |
|
|
TConstIterat... |
begin() |
|
|
begin() |
||
|
Contains ( |
Check whether an entry with the specified key is in the cache. |
|
|
ContainsByPredicate ( |
Check whether an entry for which a predicate returns true is in the cache. |
|
|
Empty ( |
Empty the cache. |
|
|
TConstIterat... |
end() |
|
|
end() |
||
|
TArray< Valu... |
FilterByPredicate ( |
Filter the entries in the cache using a predicate. |
|
const ValueT... |
Find ( |
Find the value of the entry with the specified key. |
|
const ValueT... |
FindAndTouch ( |
Find the value of the entry with the specified key and mark it as the most recently used. |
|
const ValueT... |
FindAndTouchChecked ( |
Find the value of the entry with the specified key and mark it as the most recently used. |
|
ValueType |
FindAndTouchRef ( |
Find the value of the entry with the specified key and mark it as the most recently used. |
|
const ValueT... |
FindByPredicate ( |
Find the value of an entry using a predicate. |
|
const ValueT... |
FindChecked ( |
Find the value of the entry with the specified key. |
|
ValueType |
FindRef ( |
Find the value of the entry with the specified key. |
|
GetKeys ( |
Find the keys of all cached entries. |
|
|
MarkAsRecent ( |
Mark the given entry as recently used. |
|
|
Max() |
Get the maximum number of entries in the cache. |
|
|
Num() |
Get the number of entries in the cache. |
|
|
Remove ( |
Remove all entries with the specified key from the cache. |
|
|
Remove ( |
Remove the specified entry from the cache. |
|
|
RemoveByPredicate ( |
Remove all entries using a predicate. |
|
|
ValueType |
RemoveLeastRecent() |
Remove and return the least recent element from the cache. |
Name |
Description |
|
---|---|---|
|
TBaseIterator |
Base class for cache iterators. Iteration begins at the most recent entry. |
|
TConstIterator |
Cache iterator (const). |
|
TIterator |
Cache iterator. |