Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Containers
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include | #include "Containers/Array.h" |
Syntax
template<typename ContainerType, typename ElementType, typename SizeType>
class TIndexedContainerIterator
Remarks
Generic iterator which can operate on types that expose the following:
- A type called ElementType representing the contained type.
- A method SizeType Num() const that returns the number of items in the container.
- A method bool IsValidIndex(SizeType index) which returns whether a given index is valid in the container.
- A method T& operatorSizeType index which returns a reference to a contained object by index.
- A method void RemoveAt(SizeType index) which removes the element at index
Constructors
| Type | Name | Description | |
|---|---|---|---|
TIndexedContainerIterator
(
ContainerType& InContainer, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| SizeType | GetIndex () |
Returns an index to the current element. | |
| void | Removes current element in array. | ||
| void | Removes current element in array by swapping it with the end element and popping it from the end. | ||
| void | Reset () |
Resets the iterator to the first element. | |
| void | SetToEnd () |
Sets the iterator to one past the last element. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| TIndexedContainerIterator | operator-
(
SizeType Offset |
||
| TIndexedContainerIterator & | operator-- () |
Moves iterator to the previous element in the container. | |
| TIndexedContainerIterator | operator--
(
int |
||
| Conversion to "bool" returning true if the iterator has not reached the last element. | |||
| bool | operator!=
(
const TIndexedContainerIterator& Rhs |
||
| ElementType & | operator* () |
||
| TIndexedContainerIterator | operator+
(
SizeType Offset |
||
| TIndexedContainerIterator | operator++
(
int |
||
| TIndexedContainerIterator & | operator++ () |
Advances iterator to the next element in the container. | |
| TIndexedContainerIterator & | operator+=
(
SizeType Offset |
Iterator arithmetic support | |
| TIndexedContainerIterator & | operator-=
(
SizeType Offset |
||
| bool | operator==
(
const TIndexedContainerIterator& Rhs |
||
| ElementType * | operator-> () |