FIndexFlagSet

This class provides optionally sparse or dense boolean flags for a set of integer indices

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

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

Include

#include "Util/SparseIndexCollectionTypes.h"

Syntax

class FIndexFlagSet

Remarks

This class provides optionally sparse or dense boolean flags for a set of integer indices

Constructors

Name Description

Public function

FIndexFlagSet

(
    bool bSetSparse,
    int MaxIndex
)

Public function

FIndexFlagSet

(
    int MaxIndex,
    int SubsetCountEst
)

Functions

Name Description

Public function

void

 

Add

(
    int Index
)

Public function Const

bool

 

Contains

(
    int Index
)

Public function Const

int

 

Count()

Returns number of values in set

Public function

void

 

InitAuto

(
    int MaxIndex,
    int SubsetCountEst
)

Initialize to either sparse or dense automatically, based on max index and estimated number of set indices

Public function

void

 

InitManual

(
    bool bSetSparse,
    int MaxIndex
)

Initialize to sparse or dense based on the explicit caller choice

Public function

void

 

Remove

(
    int Index
)

Operators

Name Description

Public function Const

const bool

 

operator[]

(
    unsigned int Index
)

Array-style accessor that returns true if Index is in set, false otherwise

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