Navigation
API > API/Developer > API/Developer/TraceServices
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.
| Name | TCachedPagedArray |
| Type | class |
| Header File | /Engine/Source/Developer/TraceServices/Public/Common/CachedPagedArray.h |
| Include Path | #include "Common/CachedPagedArray.h" |
Syntax
template<typename InItemType, unsigned int PageSize>
class TCachedPagedArray
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TCachedPagedArray
(
const TCHAR* InCacheId, |
Common/CachedPagedArray.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ItemType | InItemType | Common/CachedPagedArray.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| BlocksPerPage | uint32 | Common/CachedPagedArray.h | |
| PageSizeBytes | uint32 | Common/CachedPagedArray.h | |
| WastePerPage | uint32 | Common/CachedPagedArray.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Cache | IAnalysisCache & | Common/CachedPagedArray.h | ||
| CacheId | uint32 | Common/CachedPagedArray.h | ||
| ElementCount | uint64 * | Common/CachedPagedArray.h | ||
| Pages | TArray< ItemType * > | Common/CachedPagedArray.h | ||
| ResidentPageCount | uint32 | Common/CachedPagedArray.h | ||
| ResidentPages | TArray< FSharedBuffer > | Common/CachedPagedArray.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ItemType & EmplaceBack
(
ArgsType&&... Args |
Common/CachedPagedArray.h | ||
uint64 Num() |
Common/CachedPagedArray.h | ||
uint32 NumPages() |
Common/CachedPagedArray.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ItemType & operator[]
(
uint64 Index |
Common/CachedPagedArray.h |