#include <DiscardableKeyValueCache.h>
|
| | TDiscardableKeyValueCache () |
| |
| FRWLock & | RWLock () |
| |
| TypedMap & | Current () |
| |
| TypedMap & | Backfill () |
| |
| int32 | Num () |
| |
| bool | Find (const KeyType &Key, ValueType &OutType) |
| |
| bool | Find (const KeyType &Key, ValueType &OutType, uint32 InCurrentLockFlags, uint32 &OutLockFlags) |
| |
| bool | Add (const KeyType &Key, const ValueType &Value) |
| |
| bool | Add (const KeyType &Key, const ValueType &Value, const uint32 LockFlags) |
| |
| int32 | Discard () |
| |
| template<typename DeleteFunc > |
| int32 | Discard (DeleteFunc Func) |
| |
| template<typename DeleteFunc > |
| int32 | Discard (uint32 InCurrentLockFlags, uint32 &OutNewLockFlags, DeleteFunc Func) |
| |
| uint32 | ApplyLock (uint32 CurrentFlags, uint32 NewFlags) |
| |
| void | Unlock (uint32 Flags) |
| |
◆ TypedMap
template<class KeyType , class ValueType >
◆ TDiscardableKeyValueCache()
template<class KeyType , class ValueType >
◆ Add() [1/2]
template<class KeyType , class ValueType >
Add an entry to the current map. Can fail if another thread has inserted a matching object, in which case another call to Find() should succeed
◆ Add() [2/2]
template<class KeyType , class ValueType >
Add an entry to the current map. Can fail if another thread has inserted a matching object, in which case another call to Find() should succeed
◆ ApplyLock()
template<class KeyType , class ValueType >
◆ Backfill()
template<class KeyType , class ValueType >
◆ Current()
template<class KeyType , class ValueType >
◆ Discard() [1/3]
template<class KeyType , class ValueType >
◆ Discard() [2/3]
template<class KeyType , class ValueType >
◆ Discard() [3/3]
template<class KeyType , class ValueType >
Discard all items in the backfill and swap the current & backfill pointers
◆ Find() [1/2]
template<class KeyType , class ValueType >
Returns true and sets OutType to the value with the associated key if it exists.
◆ Find() [2/2]
template<class KeyType , class ValueType >
Externally-lock-aware Find function.
InFlags represents the currently locked state of the object, OutFlags the state after the find operation has completed. Caller should be sure to unlock this object with OutFlags
◆ InternalFindWhileLocked()
template<class KeyType , class ValueType >
Checks for the entry in our current map, and if not found the backfill. If the entry is in the backfill it is moved to the current map so it will not be discarded when DiscardUnusedEntries is called
◆ Num()
template<class KeyType , class ValueType >
◆ RWLock()
template<class KeyType , class ValueType >
◆ Unlock()
template<class KeyType , class ValueType >
◆ BackfillMap
template<class KeyType , class ValueType >
◆ CurrentMap
template<class KeyType , class ValueType >
◆ LockObject
template<class KeyType , class ValueType >
◆ Map1
template<class KeyType , class ValueType >
◆ Map2
template<class KeyType , class ValueType >
The documentation for this class was generated from the following file: