UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType > Class Template Reference

#include <Map.h>

Public Types

using HashTableType = THashTable< KeyType, PairType, HashTraits, AllocatorType, AllocatorArgsType... >
 
using ConstIterator = typename HashTableType::template Iterator< true >
 
using Iterator = typename HashTableType::template Iterator< false >
 

Public Member Functions

 TMapG (AllocatorArgsType &&... AllocatorArgs)
 
ULANG_FORCEINLINE uint32_t Num () const
 
ULANG_FORCEINLINE bool Contains (const KeyType &Key) const
 
ULANG_FORCEINLINE ValueType * Find (const KeyType &Key)
 
ULANG_FORCEINLINE const ValueType * Find (const KeyType &Key) const
 
template<typename Predicate >
ULANG_FORCEINLINE const PairTypeFindByPredicate (Predicate Pred) const
 
template<typename Predicate >
ULANG_FORCEINLINE PairTypeFindByPredicate (Predicate Pred)
 
ULANG_FORCEINLINE PairTypeInsert (const KeyType &Key, ValueType &&Value)
 
ULANG_FORCEINLINE PairTypeInsert (KeyType &&Key, const ValueType &Value)
 
ULANG_FORCEINLINE PairTypeInsert (const KeyType &Key, const ValueType &Value)
 
ULANG_FORCEINLINE PairTypeInsert (KeyType &&Key, ValueType &&Value)
 
template<typename OtherKeyType , typename OtherValueType >
ULANG_FORCEINLINE PairTypeFindOrInsert (OtherKeyType &&Key, OtherValueType &&Value)
 
template<typename OtherKeyType >
ULANG_FORCEINLINE PairTypeFindOrInsert (OtherKeyType &&Key)
 
ULANG_FORCEINLINE bool Remove (const KeyType &Key)
 
ULANG_FORCEINLINE void Empty ()
 
ULANG_FORCEINLINE ValueType & operator[] (const KeyType &Key)
 
ULANG_FORCEINLINE Iterator begin ()
 
ULANG_FORCEINLINE Iterator end ()
 
ULANG_FORCEINLINE ConstIterator begin () const
 
ULANG_FORCEINLINE ConstIterator end () const
 
ULANG_FORCEINLINE ConstIterator cbegin () const
 
ULANG_FORCEINLINE ConstIterator cend () const
 

Protected Attributes

HashTableType _HashTable
 

Member Typedef Documentation

◆ ConstIterator

template<class KeyType , class ValueType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
using uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType >::ConstIterator = typename HashTableType::template Iterator<true>

◆ HashTableType

template<class KeyType , class ValueType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
using uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType >::HashTableType = THashTable<KeyType, PairType, HashTraits, AllocatorType, AllocatorArgsType...>

◆ Iterator

template<class KeyType , class ValueType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
using uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType >::Iterator = typename HashTableType::template Iterator<false>

Constructor & Destructor Documentation

◆ TMapG()

template<class KeyType , class ValueType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType >::TMapG ( AllocatorArgsType &&...  AllocatorArgs)
inline

Member Function Documentation

◆ begin() [1/2]

template<class KeyType , class ValueType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
ULANG_FORCEINLINE Iterator uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType >::begin ( )
inline

◆ begin() [2/2]

template<class KeyType , class ValueType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
ULANG_FORCEINLINE ConstIterator uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType >::begin ( ) const
inline

◆ cbegin()

template<class KeyType , class ValueType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
ULANG_FORCEINLINE ConstIterator uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType >::cbegin ( ) const
inline

◆ cend()

template<class KeyType , class ValueType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
ULANG_FORCEINLINE ConstIterator uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType >::cend ( ) const
inline

◆ Contains()

template<class KeyType , class ValueType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
ULANG_FORCEINLINE bool uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType >::Contains ( const KeyType &  Key) const
inline

◆ Empty()

template<class KeyType , class ValueType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
ULANG_FORCEINLINE void uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType >::Empty ( )
inline

◆ end() [1/2]

template<class KeyType , class ValueType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
ULANG_FORCEINLINE Iterator uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType >::end ( )
inline

◆ end() [2/2]

template<class KeyType , class ValueType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
ULANG_FORCEINLINE ConstIterator uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType >::end ( ) const
inline

◆ Find() [1/2]

template<class KeyType , class ValueType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
ULANG_FORCEINLINE ValueType * uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType >::Find ( const KeyType &  Key)
inline

◆ Find() [2/2]

template<class KeyType , class ValueType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
ULANG_FORCEINLINE const ValueType * uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType >::Find ( const KeyType &  Key) const
inline

◆ FindByPredicate() [1/2]

template<class KeyType , class ValueType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
template<typename Predicate >
ULANG_FORCEINLINE PairType * uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType >::FindByPredicate ( Predicate  Pred)
inline

◆ FindByPredicate() [2/2]

template<class KeyType , class ValueType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
template<typename Predicate >
ULANG_FORCEINLINE const PairType * uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType >::FindByPredicate ( Predicate  Pred) const
inline

◆ FindOrInsert() [1/2]

template<class KeyType , class ValueType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
template<typename OtherKeyType >
ULANG_FORCEINLINE PairType & uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType >::FindOrInsert ( OtherKeyType &&  Key)
inline

◆ FindOrInsert() [2/2]

template<class KeyType , class ValueType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
ULANG_FORCEINLINE PairType & uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType >::FindOrInsert ( OtherKeyType &&  Key,
OtherValueType &&  Value 
)
inline

◆ Insert() [1/4]

template<class KeyType , class ValueType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
ULANG_FORCEINLINE PairType & uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType >::Insert ( const KeyType &  Key,
const ValueType &  Value 
)
inline

◆ Insert() [2/4]

template<class KeyType , class ValueType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
ULANG_FORCEINLINE PairType & uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType >::Insert ( const KeyType &  Key,
ValueType &&  Value 
)
inline

◆ Insert() [3/4]

template<class KeyType , class ValueType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
ULANG_FORCEINLINE PairType & uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType >::Insert ( KeyType &&  Key,
const ValueType &  Value 
)
inline

◆ Insert() [4/4]

template<class KeyType , class ValueType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
ULANG_FORCEINLINE PairType & uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType >::Insert ( KeyType &&  Key,
ValueType &&  Value 
)
inline

◆ Num()

template<class KeyType , class ValueType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
ULANG_FORCEINLINE uint32_t uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType >::Num ( ) const
inline

◆ operator[]()

template<class KeyType , class ValueType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
ULANG_FORCEINLINE ValueType & uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType >::operator[] ( const KeyType &  Key)
inline

◆ Remove()

template<class KeyType , class ValueType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
ULANG_FORCEINLINE bool uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType >::Remove ( const KeyType &  Key)
inline

Member Data Documentation

◆ _HashTable

template<class KeyType , class ValueType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
HashTableType uLang::TMapG< KeyType, ValueType, HashTraits, AllocatorType, AllocatorArgsType >::_HashTable
protected

The documentation for this class was generated from the following file: