![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SparseIndexCollectionTypes.h>
Public Member Functions | |
| FIndexFlagSet (bool bSetSparse=true, int MaxIndex=-1) | |
| FIndexFlagSet (int MaxIndex, int SubsetCountEst) | |
| void | InitAuto (int MaxIndex, int SubsetCountEst) |
| void | InitManual (bool bSetSparse, int MaxIndex=-1) |
| bool | Contains (int Index) const |
| void | Add (int Index) |
| void | Remove (int Index) |
| int | Count () const |
| const bool | operator[] (unsigned int Index) const |
This class provides optionally sparse or dense boolean flags for a set of integer indices
|
inline |
|
inline |
| Index | index to add to set |
|
inline |
| Index | index to check for set membership |
|
inline |
Returns number of values in set
|
inline |
Initialize to either sparse or dense automatically, based on max index and estimated number of set indices
Initialize to sparse or dense based on the explicit caller choice
| bSetSparse | if true, will use sparse storage; otherwise will use dense |
| MaxIndex | maximum valid index in set; must be non-negative for dense case |
Array-style accessor that returns true if Index is in set, false otherwise
|
inline |
| Index | index to remove from set |