#include <InstanceDataSceneProxy.h>
◆ FInstanceIdIndexMap()
| FInstanceIdIndexMap::FInstanceIdIndexMap |
( |
| ) |
|
|
default |
◆ CreateExplicitIdentityMapping()
| void FInstanceIdIndexMap::CreateExplicitIdentityMapping |
( |
| ) |
|
Convert an implicit identity mapping to an explicit one, by filling in the mapping arrays. Not allowed to be called if the mapping is already explicit.
◆ GetMaxInstanceId()
| int32 FInstanceIdIndexMap::GetMaxInstanceId |
( |
| ) |
const |
|
inline |
Returms the upper bound on the instance ID represented as an integer, may be larger than the number of instances but is never larger than the max that has ever been allocated.
◆ GetMaxInstanceIndex()
| int32 FInstanceIdIndexMap::GetMaxInstanceIndex |
( |
| ) |
const |
|
inline |
Returns the maximum instance index (or rather the maximum valid number plus one), AKA the number of instances represented.
◆ IdToIndex()
◆ IndexToId()
◆ IsIdentity()
| bool FInstanceIdIndexMap::IsIdentity |
( |
| ) |
const |
|
inline |
Returns true if the mapping is an identity mapping. I.e., each instance ID corresponds to the same index.
◆ IsValidId()
Returns true if InstanceId is in the mapped range AND .
◆ RebuildFromIndexToIdMap() [1/2]
| void FInstanceIdIndexMap::RebuildFromIndexToIdMap |
( |
int32 |
MaxInstanceId | ) |
|
|
protected |
◆ RebuildFromIndexToIdMap() [2/2]
◆ Reset()
| void FInstanceIdIndexMap::Reset |
( |
int32 |
InNumInstances | ) |
|
Reset the mapping to an identity map of size InNumInstances.
◆ ResizeExplicit()
| void FInstanceIdIndexMap::ResizeExplicit |
( |
int32 |
InNumInstances, |
|
|
int32 |
MaxInstanceId |
|
) |
| |
Make sure the mapping is explicit and add enough space to accommodate the InNumInstances & MaxInstanceId.
◆ Serialize()
◆ SetInvalid()
Set the index mapping for the given InstanceId to INDEX_NONE.
◆ Update()
Update the mapping from ID to index (and vice versa). Does not reset any previous mapping for the given ID.
◆ IdToIndexMap
◆ IndexToIdMap
◆ NumInstances
| int32 FInstanceIdIndexMap::NumInstances = 0 |
|
protected |
The documentation for this class was generated from the following files: