Navigation
API > API/Runtime > API/Runtime/GeometryCore
Wrapper around existing integer iterator that returns either 0, 1, or 2 integers for each value that the original iterator returns.
This is specifically used by FDynamicMesh3::VtxTrianglesItr, where for each edge around a vertex, between 0 and 2 triangles need to be returned.
This is done via the PairExpandFunctionT TFunction, which returns a FIndex2i for a given integer. This pair must be either (a,invalid), (a, b), or (invalid, invalid), where invalid is integer < 0
| Name | TPairExpandIterator |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Util/IteratorUtil.h |
| Include Path | #include "Util/IteratorUtil.h" |
Syntax
template<typename InputIteratorT>
class TPairExpandIterator
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Util/IteratorUtil.h | |||
TPairExpandIterator
(
const InputIteratorT& CurItr, |
Util/IteratorUtil.h |
Typedefs
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Cur | InputIteratorT | Util/IteratorUtil.h | ||
| CurPair | FIndex2i | Util/IteratorUtil.h | ||
| CurPairI | int | Util/IteratorUtil.h | ||
| CurValue | int | Util/IteratorUtil.h | ||
| End | InputIteratorT | Util/IteratorUtil.h | ||
| PairFunc | PairExpandFunctionT | Util/IteratorUtil.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void goto_next() |
Util/IteratorUtil.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const TPairExpandIterator& Other |
Util/IteratorUtil.h | ||
int operator*() |
Util/IteratorUtil.h | ||
const TPairExpandIterator & operator++() |
Util/IteratorUtil.h | ||
bool operator==
(
const TPairExpandIterator& Other |
Util/IteratorUtil.h |