TPairExpandIterator

Wrapper around existing integer iterator that returns either 0, 1, or 2 integers for each value that the original iterator returns.

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Util/IteratorUtil.h

Include

#include "Util/IteratorUtil.h"

Syntax

template<typename InputIteratorT>
class TPairExpandIterator

Remarks

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

Variables

Name Description

Public variable

InputIteratorT

 

Cur

Public variable

FIndex2i

 

CurPair

Public variable

int

 

CurPairI

Public variable

int

 

CurValue

Public variable

InputIteratorT

 

End

Public variable

PairExpandFunct...

 

PairFunc

Constructors

Name Description

Public function

TPairExpandIterator()

Public function

TPairExpandIterator

(
    const InputIteratorT& CurItr,
    const InputIteratorT& EndItr,
    const PairExpandFunctionT& PairFun...
)

Functions

Name Description

Public function

void

 

goto_next()

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const TPairExpandIterator& Other
)

Public function Const

int

 

operator*()

Public function

const TPairE...

 

operator++()

Public function Const

bool

 

operator==

(
    const TPairExpandIterator& Other
)

Typedefs

Name

Description

PairExpandFunctionT

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss