![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <IteratorUtil.h>
Public Member Functions | |
| ExpandIterator () | |
| bool | operator== (const ExpandIterator &Other) const |
| bool | operator!= (const ExpandIterator &Other) const |
| OutputType | operator* () const |
| const ExpandIterator & | operator++ () |
| void | goto_next () |
| ExpandIterator (const InputIteratorT &CurItr, const InputIteratorT &EndItr, const ExpandFunctionT &ExpandFuncIn) | |
Public Attributes | |
| InputIteratorT | Cur |
| InputIteratorT | End |
| OutputType | CurValue |
| int | CurExpandI |
| ExpandFunctionT | ExpandFunc |
Wrapper around existing iterator that returns multiple values, of potentially different type, for each value that input iterator returns.
This is done via an "expansion" function that takes an int reference which indicates "where" we are in the expansion (eg like a state machine). How you use this value is up to you.
When the input is -1, you should interpret this as the "beginning" of handling the input value (ie we have not returned any values yet for this input value)
When you are "done" with an input value, set the outgoing int reference to -1 and the base iterator will be incremented.
If you have more values to return for this input value, set it to some positive number of your choosing.
See FDynamicMesh3::VtxTrianglesItr for an example
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| InputIteratorT UE::Geometry::ExpandIterator< OutputType, InputType, InputIteratorT >::Cur |
| int UE::Geometry::ExpandIterator< OutputType, InputType, InputIteratorT >::CurExpandI |
| OutputType UE::Geometry::ExpandIterator< OutputType, InputType, InputIteratorT >::CurValue |
| InputIteratorT UE::Geometry::ExpandIterator< OutputType, InputType, InputIteratorT >::End |
| ExpandFunctionT UE::Geometry::ExpandIterator< OutputType, InputType, InputIteratorT >::ExpandFunc |