Navigation
API > API/Plugins > API/Plugins/NetworkPrediction
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
| Name | TInstanceMap |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/NetworkPrediction/Source/NetworkPrediction/Public/Services/NetworkPredictionInstanceMap.h |
| Include Path | #include "Services/NetworkPredictionInstanceMap.h" |
Syntax
template<typename T>
struct TInstanceMap
Structs
| Name | Remarks |
|---|---|
| FIndex |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Data | TSparseArray< T > | Services/NetworkPredictionInstanceMap.h | ||
| LastFreeIndex | int32 | Services/NetworkPredictionInstanceMap.h | ||
| Lookup | TSortedMap< int32, FIndex > | Services/NetworkPredictionInstanceMap.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
T * Find
(
const FNetworkPredictionID& ID |
Services/NetworkPredictionInstanceMap.h | ||
T & FindOrAdd
(
const FNetworkPredictionID& ID |
Services/NetworkPredictionInstanceMap.h | ||
T & GetByIndexChecked
(
int32 idx |
Services/NetworkPredictionInstanceMap.h | ||
int32 GetIndex
(
const FNetworkPredictionID& ID |
Services/NetworkPredictionInstanceMap.h | ||
int32 GetIndexChecked
(
const FNetworkPredictionID& ID |
Services/NetworkPredictionInstanceMap.h | ||
void Remove
(
const FNetworkPredictionID& ID |
Services/NetworkPredictionInstanceMap.h |