![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ChunkReferenceTracker.h>
Inheritance diagram for BuildPatchServices::IChunkReferenceTracker:Public Types | |
| enum class | ESortDirection : uint8 { Ascending = 0 , Descending } |
Public Member Functions | |
| virtual | ~IChunkReferenceTracker () |
| virtual TSet< FGuid > | GetReferencedChunks () const =0 |
| virtual int32 | GetReferenceCount (const FGuid &ChunkId) const =0 |
| virtual void | SortByUseOrder (TArray< FGuid > &ChunkList, ESortDirection Direction) const =0 |
| virtual TArray< FGuid > | GetNextReferences (int32 Count, const TFunction< bool(const FGuid &)> &SelectPredicate) const =0 |
| virtual TArray< FGuid > | SelectFromNextReferences (int32 Count, const TFunction< bool(const FGuid &)> &SelectPredicate) const =0 |
| virtual bool | PopReference (const FGuid &ChunkId)=0 |
| virtual int32 | GetRemainingChunkCount () const =0 |
| virtual void | CopyOutOrderedUseList (TArray< FGuid > &OutUseList) const =0 |
| virtual int32 | GetNextUsageForChunk (const FGuid &ChunkId, int32 &OutLastUsageIndex) const =0 |
| virtual int32 | GetCurrentUsageIndex () const =0 |
An interface for tracking references to chunks used throughout an installation. It is used to share across systems the chunks that are still required and when.
|
strong |
|
inlinevirtual |
|
pure virtual |
Implemented in BuildPatchServices::FChunkReferenceTracker.
|
pure virtual |
Implemented in BuildPatchServices::FChunkReferenceTracker.
|
pure virtual |
Find the next X chunk references that match the provided predicate.
| Count | The number of chunk entries that are desired. |
| SelectPredicate | The predicate used to select each chunk. |
Implemented in BuildPatchServices::FChunkReferenceTracker.
|
pure virtual |
Implemented in BuildPatchServices::FChunkReferenceTracker.
|
pure virtual |
Gets the number of times a specific chunk is still referenced for the associated installation.
| ChunkId | The id for the chunk in question. |
Implemented in BuildPatchServices::FChunkReferenceTracker.
|
pure virtual |
Gets a set of all chunks referenced by the installation this tracker refers to. This returns the remaining referenced chunks!
Implemented in BuildPatchServices::FChunkReferenceTracker.
|
pure virtual |
Implemented in BuildPatchServices::FChunkReferenceTracker.
|
pure virtual |
Poorly named - Should be named "DoneWithChunk". The expectation is that we finish with chunks in the expected use order.
Pop the top reference from the tracker, indicating that operation has been performed. It is not valid to pop anything but the top guid, so it must be provided for verification of behavior.
| ChunkId | The id of the top chunk, this is used to verify behavior. |
Implemented in BuildPatchServices::FChunkReferenceTracker.
|
pure virtual |
Select from the next X chunk references, entries that match the provided predicate.
| Count | The number of chunk entries to search through. |
| SelectPredicate | The predicate used to select each chunk. |
Implemented in BuildPatchServices::FChunkReferenceTracker.
|
pure virtual |
Sorts a given array of chunk ids by the order in which they are required for the installation.
| ChunkList | The array to be sorted. |
| Direction | The direction of sort. Ascending places soonest required chunk first. |
Implemented in BuildPatchServices::FChunkReferenceTracker.