Module |
|
Header |
/Engine/Source/Runtime/RHI/Public/PsoLruCache.h |
Include |
#include "PsoLruCache.h" |
template<typename KeyType, typename ValueType>
class TPsoLruCache
Implements a Least Recently Used (LRU) cache.
Name | Description | |
---|---|---|
|
TPsoLruCache() |
Default constructor (empty cache that cannot hold any values). |
|
TPsoLruCache ( |
Create and initialize a new instance. |
Name | Description | |
---|---|---|
|
~TPsoLruCache() |
Destructor. |
Name | Description | ||
---|---|---|---|
|
FSetElementI... |
Add ( |
Add an entry to the cache. |
|
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. |
|
|
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... |
FindByPredicate ( |
Find the value of an entry using a predicate. |
|
GetKeys ( |
Find the keys of all cached entries. |
|
|
MarkAsRecent ( |
Mark the given entry as recently used. |
|
|
MarkAsRecent ( |
||
|
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. |
|
|
Remove ( |
||
|
RemoveByPredicate ( |
Remove all entries using a predicate. |
|
|
ValueType |
RemoveLeastRecent() |
Remove and return the least recent element from the cache. |
|
ValueType |
RemoveMostRecent() |
Remove and return the most 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. |