Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Containers/Array.h |
Include |
#include "Containers/Array.h" |
template<typename ContainerType, typename ElementType, typename SizeType>
class TIndexedContainerIterator
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& operator[](SizeType index) which returns a reference to a contained object by index.
A method void RemoveAt(SizeType index) which removes the element at index
Name | Description | |
---|---|---|
|
TIndexedContainerIterator ( |
Name | Description | ||
---|---|---|---|
|
SizeType |
GetIndex() |
Returns an index to the current element. |
|
RemoveCurrent() |
Removes current element in array. |
|
|
Reset() |
Resets the iterator to the first element. |
|
|
SetToEnd() |
Sets iterator to the last element. |
Name | Description | ||
---|---|---|---|
|
TIndexedCont... |
operator- ( |
|
|
TIndexedCont... |
operator--() |
Moves iterator to the previous element in the container. |
|
TIndexedCont... |
operator-- ( |
|
|
operator bool() |
Conversion to "bool" returning true if the iterator has not reached the last element. |
|
|
ElementType ... |
operator*() |
|
|
TIndexedCont... |
operator+ ( |
|
|
TIndexedCont... |
operator++ ( |
|
|
TIndexedCont... |
operator++() |
Advances iterator to the next element in the container. |
|
TIndexedCont... |
operator+= ( |
Iterator arithmetic support |
|
TIndexedCont... |
operator-= ( |
|
|
ElementType ... |
operator->() |