Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Containers
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Containers/ObservableArray.h |
| Include | #include "Containers/ObservableArray.h" |
Syntax
template<typename InElementType>
struct TObservableArray
Constructors
| Type | Name | Description | |
|---|---|---|---|
TObservableArray
(
std::initializer_list< ElementType > InitList |
|||
TObservableArray
(
const TArray< ElementType, InOtherAllocatorType >& Other |
|||
TObservableArray
(
TArray< ElementType, InOtherAllocatorType >&& Other |
|||
TObservableArray
(
const TObservableArray& |
Non-copyable for now, but this could be made copyable in future if needed. | ||
TObservableArray
(
TObservableArray&& Other |
|||
TObservableArray
(
const ElementType* Ptr, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| SizeType | Add
(
ElementType&& Item |
||
| SizeType | Add
(
const ElementType& Item |
||
| void | |||
| void | |||
| void | Append
(
const TObservableArray< OtherElementType >& Source |
||
| RangedForIteratorType | begin () |
||
| RangedForConstIteratorType | begin () |
||
| bool | Contains
(
const ComparisonType& Item |
||
| SizeType | ContainsByPredicate
(
InPredicate Pred |
||
| SizeType | Emplace
(
InArgTypes&&... Args |
||
| void | |||
| RangedForConstIteratorType | end () |
||
| RangedForIteratorType | end () |
||
| SizeType | Find
(
const ElementType& Item |
||
| const ElementType * | FindByPredicate
(
InPredicate Pred |
||
| ElementType * | FindByPredicate
(
InPredicate Pred |
||
| const ElementType * | GetData () |
||
| ElementType * | GetData () |
||
| SizeType | IndexByPredicate
(
InPredicate Pred |
||
| bool | IsEmpty () |
||
| bool | IsValidIndex
(
SizeType Index |
||
| int32 | Num () |
||
| FArrayChangedDelegate & | |||
| void | |||
| void | |||
| void | RemoveAtSwap
(
SizeType Index |
||
| void | RemoveAtSwap
(
SizeType Index, |
||
| SizeType | RemoveSingle
(
const ElementType& Item, |
||
| SizeType | RemoveSingleSwap
(
const ElementType& Item, |
||
| void | |||
| void | |||
| void |
Operators
| Type | Name | Description | |
|---|---|---|---|
| const ElementType & | operator[]
(
SizeType Index |
||
| ElementType & | operator[]
(
SizeType Index |
||
| TObservableArray & | operator=
(
const TObservableArray& |
||
| TObservableArray & | operator=
(
TObservableArray&& Other |
||
| bool | operator==
(
const TObservableArray& OtherArray |
||
| bool | operator==
(
TArray< ElementType, InOtherAllocatorType >& OtherArray |