Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/GeometryCore/Public/Util/UniqueIndexSet.h |
Include |
#include "Util/UniqueIndexSet.h" |
class FUniqueIndexSet
FUniqueIndexSet is used to construct a list of unique elements of integers in range [0, MaxValue]. General usage is for things like converting a vertex set to the set of connected one-ring triangles. The approach is to have a bit-array for set membership, and then accumulate unique entries in a TArray.
This is faster for construction than a TSet, but does require allocating and/or clearing the bit-array. Still generally quite a bit more efficient, particularly for large sets.
Name | Description | |
---|---|---|
|
~FUniqueIndexSet() |
TODO: second bit set that tracks which blocks of ints have been set. |
Name | Description | ||
---|---|---|---|
|
Add ( |
Add Index to the set |
|
|
begin() |
Range-for support. Do not directly call these functions. |
|
|
Collect ( |
Add the members of the current index set to an object that supports .Reserve(int) and .Add(int) |
|
|
Contains ( |
||
|
end() |
||
|
const TArray... |
Indices() |
|
|
Initialize |
Initialize the set with maximum index. |
|
|
const int32 |
Num() |
|
|
SwapValuesWith |
||
|
TakeValues() |