Navigation
API > API/Runtime > API/Runtime/uLangCore
Templated dynamic set of shared pointers to elements This is similar to TSPtrArrayG, plus elements are always kept in sorted order and looked up via binary search
| Name | TSPtrSetG |
| Type | class |
| Header File | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Containers/SharedPointer.h |
| Include Path | #include "uLang/Common/Containers/SharedPointer.h" |
| Source | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Containers/SharedPointerSet.h |
Syntax
template<typename InElementType, bool AllowNull, typename InKeyType, typename InElementAllocatorType, typename... RawAllocatorArgsType>
class TSPtrSetG : protected uLang::TSPtrArrayG< InElementType, AllowNull, InElementAllocatorType, RawAllocatorArgsType... >
Inheritance Hierarchy
- TSPtrArrayG → TSPtrSetG
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ULANG_FORCEINLINE TSPtrSetG
(
RawAllocatorArgsType&&... RawAllocatorArgs |
Constructor | uLang/Common/Containers/SharedPointerSet.h | |
| Copy constructor. | uLang/Common/Containers/SharedPointerSet.h | ||
| Move constructor. | uLang/Common/Containers/SharedPointerSet.h | ||
| Copy constructor. | uLang/Common/Containers/SharedPointerSet.h | ||
| Move constructor. | uLang/Common/Containers/SharedPointerSet.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Helper | TPointerSetHelper< InElementType, InKeyType > | uLang/Common/Containers/SharedPointerSet.h | |
| KeyType | InKeyType | uLang/Common/Containers/SharedPointerSet.h | |
| Super | TSPtrArrayG< InElementType, AllowNull, InElementAllocatorType, RawAllocatorArgsType... > | uLang/Common/Containers/SharedPointerSet.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ULANG_FORCEINLINE int32_t Add
(
const PointerType& Item |
Adds a new item. Must not exist yet.Move semantics version. | uLang/Common/Containers/SharedPointerSet.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/SharedPointerSet.h | |
| Appends the specified array to this array.Allocator changing version. | uLang/Common/Containers/SharedPointerSet.h | ||
| Appends the specified array to this array. | uLang/Common/Containers/SharedPointerSet.h | ||
bool Contains
(
const KeyType& Key |
Checks if this array contains the element. | uLang/Common/Containers/SharedPointerSet.h | |
| Finds an item by key (assuming the ElementType overloads operator== for the comparison). | uLang/Common/Containers/SharedPointerSet.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/SharedPointerSet.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/SharedPointerSet.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSPtrSetG & operator+=
(
const TSPtrSetG& Other |
Appends the specified array to this array. Cannot append to self. | uLang/Common/Containers/SharedPointerSet.h | |
TSPtrSetG & operator+=
(
TSPtrSetG&& Other |
Appends the specified array to this array. Cannot append to self.Move semantics version. | uLang/Common/Containers/SharedPointerSet.h | |
| Assignment operators. | uLang/Common/Containers/SharedPointerSet.h | ||
| uLang/Common/Containers/SharedPointerSet.h |