Navigation
API > API/Runtime > API/Runtime/uLangCore > API/Runtime/uLangCore/uLang > API/Runtime/uLangCore/uLang/Common > API/Runtime/uLangCore/uLang/Common/Containers
Inheritance Hierarchy
- TSPtrArrayG
- TSPtrSetG
References
| Module | uLangCore |
| Header | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Containers/SharedPointer.h |
| Include | #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... >
Remarks
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
Constructors
| Type | Name | Description | |
|---|---|---|---|
| ULANG_FORCEINLINE | TSPtrSetG
(
RawAllocatorArgsType&&... RawAllocatorArgs |
Constructor | |
| ULANG_FORCEINLINE | Copy constructor. | ||
| ULANG_FORCEINLINE | Move constructor. | ||
| ULANG_FORCEINLINE | Copy constructor. | ||
| Move constructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| ULANG_FORCEINLINE int32_t | Add
(
const PointerType& Item |
Adds a new item. Must not exist yet.Move semantics version. | |
| ULANG_FORCEINLINE int32_t | AddNew
(
CtorArgsType&&... CtorArgs |
Constructs a new item at the end of the array, possibly reallocating the whole array to fit. | |
| void | Appends the specified array to this array.Allocator changing version. | ||
| void | Appends the specified array to this array. | ||
| bool | Checks if this array contains the element. | ||
| ULANG_FORCEINLINETOptional< PointerType > | Finds an item by key (assuming the ElementType overloads operator== for the comparison). | ||
| int32_t | Finds an item by key (assuming the ElementType overloads operator< and operator== for the comparison). | ||
| int32_t | Removes as many instances of Item as there are in the array, maintaining order but not indices. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| TSPtrSetG & | operator+=
(
const TSPtrSetG& Other |
Appends the specified array to this array. Cannot append to self. | |
| TSPtrSetG & | operator+=
(
TSPtrSetG&& Other |
Appends the specified array to this array. Cannot append to self.Move semantics version. | |
| TSPtrSetG & | Assignment operators. | ||
| TSPtrSetG & |