Ark Server API (ASE) - Wiki
|
#include <BitArray.h>
Classes | |
class | FConstIterator |
class | FConstReverseIterator |
class | FIterator |
Public Member Functions | |
TBitArray (const bool Value=false, const int32 InNumBits=0) | |
FORCEINLINE | TBitArray (TBitArray &&Other) |
FORCEINLINE | TBitArray (const TBitArray &Copy) |
FORCEINLINE TBitArray & | operator= (TBitArray &&Other) |
FORCEINLINE TBitArray & | operator= (const TBitArray &Copy) |
int32 | Add (const bool Value) |
void | Empty (int32 ExpectedNumBits=0) |
void | Reset () |
void | Init (bool Value, int32 InNumBits) |
FORCENOINLINE void | SetRange (int32 Index, int32 Num, bool Value) |
void | RemoveAt (int32 BaseIndex, int32 NumBitsToRemove=1) |
void | RemoveAtSwap (int32 BaseIndex, int32 NumBitsToRemove=1) |
uint32 | GetAllocatedSize (void) const |
int32 | Find (bool bValue) const |
FORCEINLINE bool | Contains (bool bValue) const |
int32 | FindAndSetFirstZeroBit () |
FORCEINLINE bool | IsValidIndex (int32 InIndex) const |
FORCEINLINE int32 | Num () const |
FORCEINLINE FBitReference | operator[] (int32 Index) |
FORCEINLINE const FConstBitReference | operator[] (int32 Index) const |
FORCEINLINE FBitReference | AccessCorrespondingBit (const FRelativeBitReference &RelativeReference) |
FORCEINLINE const FConstBitReference | AccessCorrespondingBit (const FRelativeBitReference &RelativeReference) const |
FORCEINLINE const uint32 * | GetData () const |
FORCEINLINE uint32 * | GetData () |
Private Types | |
typedef Allocator::template ForElementType< uint32 > | AllocatorType |
Private Member Functions | |
FORCENOINLINE void | Realloc (int32 PreviousNumBits) |
Static Private Member Functions | |
template<typename BitArrayType > | |
static FORCEINLINE TEnableIf< TContainerTraits< BitArrayType >::MoveWillEmptyContainer >::Type | MoveOrCopy (BitArrayType &ToArray, BitArrayType &FromArray) |
template<typename BitArrayType > | |
static FORCEINLINE TEnableIf<!TContainerTraits< BitArrayType >::MoveWillEmptyContainer >::Type | MoveOrCopy (BitArrayType &ToArray, BitArrayType &FromArray) |
Private Attributes | |
AllocatorType | AllocatorInstance |
int32 | NumBits |
int32 | MaxBits |
Friends | |
class | FScriptBitArray |
template<typename > | |
class | TConstSetBitIterator |
template<typename , typename > | |
class | TConstDualSetBitIterator |
A dynamically sized bit array. An array of Booleans. They stored in one bit/Boolean. There are iterators that efficiently iterate over only set bits.
Definition at line 153 of file BitArray.h.
|
private |
Definition at line 701 of file BitArray.h.
|
inlineexplicit |
Minimal initialization constructor.
Value | - The value to initial the bits to. |
InNumBits | - The initial number of bits in the array. |
Definition at line 170 of file BitArray.h.
|
inline |
Move constructor.
Definition at line 180 of file BitArray.h.
|
inline |
Copy constructor.
Definition at line 188 of file BitArray.h.
|
inline |
Definition at line 547 of file BitArray.h.
|
inline |
Definition at line 557 of file BitArray.h.
Adds a bit to the array with the given value.
Definition at line 254 of file BitArray.h.
|
inline |
Definition at line 487 of file BitArray.h.
|
inline |
Removes all bits from the array, potentially leaving space allocated for an expected number of bits about to be added.
ExpectedNumBits | - The expected number of bits about to be added. |
Definition at line 282 of file BitArray.h.
Finds the first true/false bit in the array, and returns the bit index. If there is none, INDEX_NONE is returned.
Definition at line 459 of file BitArray.h.
Finds the first zero bit in the array, sets it to true, and returns the bit index. If there is none, INDEX_NONE is returned.
Definition at line 496 of file BitArray.h.
Helper function to return the amount of memory allocated by this container
Definition at line 450 of file BitArray.h.
Definition at line 695 of file BitArray.h.
|
inline |
Definition at line 690 of file BitArray.h.
|
inline |
Resets the array's contents.
Value | - The value to initial the bits to. |
NumBits | - The number of bits in the array. |
Definition at line 311 of file BitArray.h.
|
inline |
Definition at line 525 of file BitArray.h.
|
inlinestaticprivate |
Definition at line 232 of file BitArray.h.
|
inlinestaticprivate |
Definition at line 243 of file BitArray.h.
Definition at line 530 of file BitArray.h.
|
inline |
Assignment operator.
Definition at line 211 of file BitArray.h.
|
inline |
Move assignment.
Definition at line 198 of file BitArray.h.
|
inline |
Definition at line 531 of file BitArray.h.
|
inline |
Definition at line 539 of file BitArray.h.
|
inlineprivate |
Definition at line 707 of file BitArray.h.
|
inline |
Removes bits from the array.
BaseIndex | - The index of the first bit to remove. |
NumBitsToRemove | - The number of consecutive bits to remove. |
Definition at line 388 of file BitArray.h.
|
inline |
Definition at line 418 of file BitArray.h.
|
inline |
Removes all bits from the array retaining any space already allocated.
Definition at line 298 of file BitArray.h.
|
inline |
Sets or unsets a range of bits within the array.
Index | The index of the first bit to set. |
Num | The number of bits to set. |
Value | The value to set the bits to. |
Definition at line 327 of file BitArray.h.
|
friend |
Definition at line 155 of file BitArray.h.
|
friend |
Definition at line 163 of file BitArray.h.
Definition at line 160 of file BitArray.h.
|
private |
Definition at line 703 of file BitArray.h.
Definition at line 705 of file BitArray.h.
Definition at line 704 of file BitArray.h.