Open 3D Engine AzCore API Reference 26.05.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::IO::RecentlyUsedIndex< T > Class Template Reference

Uses an optimized double linked list to keep track of the most and least recently used index. More...

#include <RecentlyUsedIndex.h>

Public Member Functions

 RecentlyUsedIndex (T size)
 
void Touch (T index)
 Pushes the index to end of the list, making it the most recently used.
 
void Flush (T index)
 Pushes the index to the start of the list, making it the least recently used.
 
void FlushAll ()
 Flush all indices, returning the cache to it's initial state.
 
TouchLeastRecentlyUsed ()
 
GetLeastRecentlyUsed () const
 
GetMostRecentlyUsed () const
 
void GetIndicesInOrder (const AZStd::function< void(T)> &callback) const
 

Static Public Attributes

static constexprInvalidIndex = AZStd::numeric_limits<T>::max()
 

Detailed Description

template<typename T>
class AZ::IO::RecentlyUsedIndex< T >

Uses an optimized double linked list to keep track of the most and least recently used index.

Member Function Documentation

◆ TouchLeastRecentlyUsed()

template<typename T >
T AZ::IO::RecentlyUsedIndex< T >::TouchLeastRecentlyUsed ( )

Touches the least recently used index. This has better performance than using Touch with the least recently used index.


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