Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Containers
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Containers/StaticBitArray.h |
| Include | #include "Containers/StaticBitArray.h" |
Syntax
template<uint32 NumBits>
class TStaticBitArray
Remarks
A statically sized bit array.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Minimal initialization constructor | |||
TStaticBitArray
(
UnspecifiedZeroType |
Constructor that allows initializing by assignment from 0 | ||
TStaticBitArray
(
const FString& Str |
Constructor to initialize from string | ||
TStaticBitArray
(
bool, |
Constructor to initialize to a single bit |
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | Finds the first clear bit in the array and returns the bit index. | ||
| int32 | Finds the first set bit in the array and returns it's index. | ||
| int32 | Num () |
Accessors. | |
| FString | ToString () |
Converts the bitarray to a string representing the binary representation of the array |
Operators
| Type | Name | Description | |
|---|---|---|---|
| Conversion to bool. | |||
| bool | operator!=
(
const TStaticBitArray< NumBits >& B |
!= simple maps to == | |
| TStaticBitArray & | operator&=
(
const TStaticBitArray& Other |
||
| TStaticBitReference< WordType > | operator[]
(
int32 Index |
||
| const TConstStaticBitReference< WordType > | operator[]
(
int32 Index |
||
| TStaticBitArray & | operator^=
(
const TStaticBitArray& Other |
||
| TStaticBitArray & | operator|=
(
const TStaticBitArray& Other |
Modifiers. | |
| bool | operator==
(
const TStaticBitArray< NumBits >& B |
Typedefs
| Name | Description |
|---|---|
| UnspecifiedBoolType | |
| UnspecifiedZeroType | |
| WordType |
Constants
| Name | Description |
|---|---|
| NumBitsPerWord | |
| NumBitsPerWordLog2 | |
| NumOfBits | |
| NumWords |