Navigation
API > API/Runtime > API/Runtime/uLangCore
Templated dynamic set of shared pointers to elements This is similar to TUPtrArrayG, plus elements are always kept in sorted order and looked up via binary search
| Name | TUPtrSetG |
| Type | class |
| Header File | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Containers/UniquePointerSet.h |
| Include Path | #include "uLang/Common/Containers/UniquePointerSet.h" |
Syntax
template<typename InElementType, bool AllowNull, typename InKeyType, typename InElementAllocatorType, typename... RawAllocatorArgsType>
class TUPtrSetG : protected uLang::TUPtrArrayG< InElementType, AllowNull, InElementAllocatorType, RawAllocatorArgsType... >
Inheritance Hierarchy
- TUPtrArrayG → TUPtrSetG
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ULANG_FORCEINLINE TUPtrSetG
(
RawAllocatorArgsType&&... RawAllocatorArgs |
Constructor | uLang/Common/Containers/UniquePointerSet.h | |
| Move constructor. | uLang/Common/Containers/UniquePointerSet.h | ||
| Move constructor. | uLang/Common/Containers/UniquePointerSet.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Helper | TPointerSetHelper< InElementType, InKeyType > | uLang/Common/Containers/UniquePointerSet.h | |
| KeyType | InKeyType | uLang/Common/Containers/UniquePointerSet.h | |
| Super | TUPtrArrayG< InElementType, AllowNull, InElementAllocatorType, RawAllocatorArgsType... > | uLang/Common/Containers/UniquePointerSet.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ULANG_FORCEINLINE int32_t Add
(
PointerType&& Item |
Adds a new item. Must not exist yet.Move semantics version. | uLang/Common/Containers/UniquePointerSet.h | |
ULANG_FORCEINLINE int32_t AddNew
(
CtorArgsType&&... CtorArgs |
Constructs a new item at the end of the array, possibly reallocating the whole array to fit. | uLang/Common/Containers/UniquePointerSet.h | |
| Appends the specified array to this array.Allocator changing version. | uLang/Common/Containers/UniquePointerSet.h | ||
| Appends the specified array to this array. | uLang/Common/Containers/UniquePointerSet.h | ||
bool Contains
(
const KeyType& Key |
Checks if this array contains the element. | uLang/Common/Containers/UniquePointerSet.h | |
ULANG_FORCEINLINEElementType * Find
(
const KeyType& Key |
Finds an item by key (assuming the ElementType overloads operator== for the comparison). | uLang/Common/Containers/UniquePointerSet.h | |
int32_t IndexOf
(
const KeyType& Key |
Finds an item by key (assuming the ElementType overloads operator< and operator== for the comparison). | uLang/Common/Containers/UniquePointerSet.h | |
int32_t Remove
(
const KeyType& Key |
Removes as many instances of Item as there are in the array, maintaining order but not indices. | uLang/Common/Containers/UniquePointerSet.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TUPtrSetG & operator+=
(
TUPtrSetG&& Other |
Appends the specified array to this array. Cannot append to self.Move semantics version. | uLang/Common/Containers/UniquePointerSet.h | |
TUPtrSetG & operator+=
(
const TUPtrSetG& Other |
Appends the specified array to this array. Cannot append to self. | uLang/Common/Containers/UniquePointerSet.h |