Navigation
API > API/Runtime > API/Runtime/GeometryCore
This class provides optionally sparse or dense boolean flags for a set of integer indices
| Name | FIndexFlagSet |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Util/SparseIndexCollectionTypes.h |
| Include Path | #include "Util/SparseIndexCollectionTypes.h" |
Syntax
class FIndexFlagSet
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FIndexFlagSet
(
bool bSetSparse, |
Util/SparseIndexCollectionTypes.h | ||
FIndexFlagSet
(
int MaxIndex, |
Util/SparseIndexCollectionTypes.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Dense | TOptional< TArray< bool > > | Util/SparseIndexCollectionTypes.h | ||
| DenseCount | int | Util/SparseIndexCollectionTypes.h | ||
| Sparse | TOptional< TSet< int > > | Util/SparseIndexCollectionTypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Add
(
int Index |
Util/SparseIndexCollectionTypes.h | ||
bool Contains
(
int Index |
Util/SparseIndexCollectionTypes.h | ||
int Count() |
Returns number of values in set | Util/SparseIndexCollectionTypes.h | |
void InitAuto
(
int MaxIndex, |
Initialize to either sparse or dense automatically, based on max index and estimated number of set indices | Util/SparseIndexCollectionTypes.h | |
void InitManual
(
bool bSetSparse, |
Initialize to sparse or dense based on the explicit caller choice | Util/SparseIndexCollectionTypes.h | |
void Remove
(
int Index |
Util/SparseIndexCollectionTypes.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const bool operator[]
(
unsigned int Index |
Array-style accessor that returns true if Index is in set, false otherwise | Util/SparseIndexCollectionTypes.h |