Navigation
API > API/Plugins > API/Plugins/NetworkPrediction > API/Plugins/NetworkPrediction/Services
References
Module | NetworkPrediction |
Header | /Engine/Plugins/Runtime/NetworkPrediction/Source/NetworkPrediction/Public/Services/NetworkPredictionInstanceMap.h |
Include | #include "Services/NetworkPredictionInstanceMap.h" |
Syntax
template<typename T>
struct TInstanceMap
Remarks
Generic associative container for instance data keyed off of the FNetworkPredictionID SortedMap + SparseArray provides: -O(log n) add/remove. -Stable index that can be cached for O(1) lookup in various service acceleration structures -Data* are not stable out of this data structure
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
T * | Find
(
const FNetworkPredictionID& ID |
|
![]() |
T & | FindOrAdd
(
const FNetworkPredictionID& ID |
|
![]() |
T & | GetByIndexChecked
(
int32 idx |
|
![]() |
int32 | GetIndex
(
const FNetworkPredictionID& ID |
|
![]() |
int32 | GetIndexChecked
(
const FNetworkPredictionID& ID |
|
![]() |
void | Remove
(
const FNetworkPredictionID& ID |