CriWare Unreal Engine
Plug-ins for CriWare solutions.
Loading...
Searching...
No Matches
Atom::TMapAnyKey< ValueType > Class Template Reference

#include <AtomMapAnyKey.h>

Inheritance diagram for Atom::TMapAnyKey< ValueType >:

Public Member Functions

template<typename AnyKeyType>
ValueType & FindOrAdd (AnyKeyType Key, bool &bHadKey)

Private Types

using Super = TMap<uint32, ValueType>

Detailed Description

template<typename ValueType>
class Atom::TMapAnyKey< ValueType >

Variant of TMap that allows multiple key types within the same map instance. Key types must be hash-able, as with a regular map.

Member Typedef Documentation

◆ Super

template<typename ValueType>
using Atom::TMapAnyKey< ValueType >::Super = TMap<uint32, ValueType>
private

Member Function Documentation

◆ FindOrAdd()

template<typename ValueType>
template<typename AnyKeyType>
ValueType & Atom::TMapAnyKey< ValueType >::FindOrAdd ( AnyKeyType Key,
bool & bHadKey )
inline

Find the value associated with a specified key, or if none exists, add a value using the default constructor.

Parameters
KeyThe key to search for.
bHadKeyTrue if found, false if added.
Returns
A reference to the value associated with the specified key.

The documentation for this class was generated from the following file:
  • C:/git/uev2/Engine/Plugins/Runtime/CriWare/CriWare/Source/CriWareCore/Public/Atom/Gameplay/AtomMapAnyKey.h