TArrayAsMap

Provides a [TMap](API\Runtime\Core\Containers\TMap) like API but backed by a dense array. The keys provided must implement GetUniqueIdx.

Windows
MacOS
Linux

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/ISpatialAcceleration.h

Include

#include "Chaos/ISpatialAcceleration.h"

Syntax

template<typename TKey, typename TValue>
class TArrayAsMap

Remarks

Provides a TMap like API but backed by a dense array. The keys provided must implement GetUniqueIdx.

Functions

Name Description

Public function

TValue &

 

Add

(
    const TKey& Key
)

Public function

void

 

Add

(
    const TKey& Key,
    const TValue& Value
)

Public function

void

 

Empty()

Public function

TValue *

 

Find

(
    const TKey& Key
)

Public function

TValue &

 

FindChecked

(
    const TKey& Key
)

Public function

TValue &

 

FindOrAdd

(
    const TKey& Key
)

Public function

void

 

Remove

(
    const TKey& Key
)

Public function

void

 

RemoveChecked

(
    const TKey& Key
)

Public function

void

 

Reset()

Public function

void

 

Serialize

(
    FChaosArchive & Ar
)

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback