TInstanceMap

Generic associative container for instance data keyed off of the [FNetworkPredictionID](API\Plugins\NetworkPrediction\FNetworkPredictionID) SortedMap + SparseArray provides: -O(log n) add/remove.

Windows
MacOS
Linux

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

Name Description

Public function

T *

 

Find

(
    const FNetworkPredictionID& ID
)

Public function

T &

 

FindOrAdd

(
    const FNetworkPredictionID& ID
)

Public function

T &

 

GetByIndexChecked

(
    int32 idx
)

Public function

int32

 

GetIndex

(
    const FNetworkPredictionID& ID
)

Public function

int32

 

GetIndexChecked

(
    const FNetworkPredictionID& ID
)

Public function

void

 

Remove

(
    const FNetworkPredictionID& ID
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss