TStaticBitArray

A statically sized bit array.

Windows
MacOS
Linux

Syntax

template<uint32 NumBits>
class TStaticBitArray

Remarks

A statically sized bit array.

Constructors

Name Description

Public function

TStaticBitArray()

Minimal initialization constructor

Public function

TStaticBitArray

(
    UnspecifiedZeroType
)

Constructor that allows initializing by assignment from 0

Public function

TStaticBitArray

(
    const FString& Str
)

Constructor to initialize from string

Public function

TStaticBitArray

(
    bool,
    uint32 InBitIndex
)

Constructor to initialize to a single bit

Functions

Name Description

Public function Const

int32

 

FindFirstClearBit()

Finds the first clear bit in the array and returns the bit index.

Public function Const

int32

 

FindFirstSetBit()

Finds the first set bit in the array and returns it's index.

Public function Static

int32

 

Num()

Accessors.

Public function Const

FString

 

ToString()

Converts the bitarray to a string representing the binary representation of the array

Operators

Name Description

Public function Const

 

operator UnspecifiedBoolType()

Conversion to bool.

Public function

TStaticBitAr...

 

operator&=

(
    const TStaticBitArray& Other
)

Public function

TStaticBitRe...

 

operator[]

(
    int32 Index
)

Public function Const

const TConst...

 

operator[]

(
    int32 Index
)

Public function

TStaticBitAr...

 

operator^=

(
    const TStaticBitArray& Other
)

Public function

TStaticBitAr...

 

operator|=

(
    const TStaticBitArray& Other
)

Modifiers.

Typedefs

Constants

Name

Description

NumBitsPerWord

Static_assert(NumBits > 0, "Must have at least 1 bit.");

NumOfBits

NumWords

References

Module

Core

Header

Runtime/Core/Public/Containers/StaticBitArray.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback