Navigation
Unreal Engine C++ API Reference > Developer > TraceServices > Common
References
Module | TraceServices |
Header | /Engine/Source/Developer/TraceServices/Public/Common/CachedPagedArray.h |
Include | #include "Common/CachedPagedArray.h" |
Syntax
template<typename InItemType, unsigned int PageSize>
class TCachedPagedArray
Remarks
A typed paged array allowing persistent storage of the data. User defines page size (in number of elements) which defines the size of the page. The page is then mapped to a number of cache blocks. The blocks are always loaded into a coherent buffer. +----------------------------------------------------------------+ | Page | +----------------------------------------------------------------+ | | | | | | | | v v v v +---------------------------------------------------------------------------+ | Block n | Block n+1 | Block n+2 | Block n+3 | +---------------------------------------------------------------------------+
Depending on the page size there could be some blocks that are only partially used.
The container supports unloading pages for extremely large datasets by defining the number of resident pages. Once the limit is reached pages are unloaded. Pages are lazily loaded on access.
Constructors
Type | Name | Description |
---|---|---|
TCachedPagedArray ( const TCHAR* InCacheId, IAnalysisCache& InCache, uint32 InResidentPages ) |
Functions
Type | Name | Description |
---|---|---|
ItemType & | EmplaceBack ( ArgsType&&... Args ) | |
uint64 | Num () | |
uint32 | NumPages () |
Operators
Type | Name | Description |
---|---|---|
ItemType & | operator[] ( uint64 Index ) |
Typedefs
Name | Description |
---|---|
ItemType |
Constants
Name | Description |
---|---|
BlocksPerPage | |
PageSizeBytes | |
WastePerPage |