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

#include <Set.h>

Public Types

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

Public Member Functions

 TSetG (AllocatorArgsType &&... AllocatorArgs)
 
ULANG_FORCEINLINE uint32_t Num () const
 
ULANG_FORCEINLINE bool Contains (const ElementType &Element) const
 
ULANG_FORCEINLINE ElementType * Find (const KeyType &Key)
 
ULANG_FORCEINLINE const ElementType * Find (const KeyType &Key) const
 
template<typename Predicate >
ULANG_FORCEINLINE const ElementType * FindByPredicate (Predicate Pred) const
 
template<typename Predicate >
ULANG_FORCEINLINE ElementType * FindByPredicate (Predicate Pred)
 
template<typename ArgType >
ULANG_FORCEINLINE ElementType & Insert (ArgType &&Arg)
 
ULANG_FORCEINLINE ElementType & FindOrInsert (ElementType &&Element)
 
ULANG_FORCEINLINE bool Remove (const ElementType &Element)
 
ULANG_FORCEINLINE bool IsEmpty () const
 
ULANG_FORCEINLINE void Empty ()
 
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 ElementType , class KeyType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
using uLang::TSetG< ElementType, KeyType, HashTraits, AllocatorType, AllocatorArgsType >::ConstIterator = typename HashTableType::template Iterator<true>

◆ HashTableType

template<class ElementType , class KeyType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
using uLang::TSetG< ElementType, KeyType, HashTraits, AllocatorType, AllocatorArgsType >::HashTableType = THashTable<ElementType, ElementType, HashTraits, AllocatorType, AllocatorArgsType...>

◆ Iterator

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

Constructor & Destructor Documentation

◆ TSetG()

template<class ElementType , class KeyType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
uLang::TSetG< ElementType, KeyType, HashTraits, AllocatorType, AllocatorArgsType >::TSetG ( AllocatorArgsType &&...  AllocatorArgs)
inlineexplicit

Member Function Documentation

◆ begin() [1/2]

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

◆ begin() [2/2]

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

◆ cbegin()

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

◆ cend()

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

◆ Contains()

template<class ElementType , class KeyType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
ULANG_FORCEINLINE bool uLang::TSetG< ElementType, KeyType, HashTraits, AllocatorType, AllocatorArgsType >::Contains ( const ElementType &  Element) const
inline

◆ Empty()

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

◆ end() [1/2]

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

◆ end() [2/2]

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

◆ Find() [1/2]

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

◆ Find() [2/2]

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

◆ FindByPredicate() [1/2]

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

◆ FindByPredicate() [2/2]

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

◆ FindOrInsert()

template<class ElementType , class KeyType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
ULANG_FORCEINLINE ElementType & uLang::TSetG< ElementType, KeyType, HashTraits, AllocatorType, AllocatorArgsType >::FindOrInsert ( ElementType &&  Element)
inline

◆ Insert()

template<class ElementType , class KeyType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
template<typename ArgType >
ULANG_FORCEINLINE ElementType & uLang::TSetG< ElementType, KeyType, HashTraits, AllocatorType, AllocatorArgsType >::Insert ( ArgType &&  Arg)
inline

◆ IsEmpty()

template<class ElementType , class KeyType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
ULANG_FORCEINLINE bool uLang::TSetG< ElementType, KeyType, HashTraits, AllocatorType, AllocatorArgsType >::IsEmpty ( ) const
inline

◆ Num()

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

◆ Remove()

template<class ElementType , class KeyType , class HashTraits , class AllocatorType , typename... AllocatorArgsType>
ULANG_FORCEINLINE bool uLang::TSetG< ElementType, KeyType, HashTraits, AllocatorType, AllocatorArgsType >::Remove ( const ElementType &  Element)
inline

Member Data Documentation

◆ _HashTable

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

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