fixed size data structure optimized for representing a resizable array of bits. More...
#include <FixedSizeVectorBitset.h>
Inherits AzNetworking::IBitset.
Public Types | |
using | SelfType = FixedSizeVectorBitset< CAPACITY, ElementType > |
Public Member Functions | |
SelfType & | operator= (const SelfType &rhs) |
SelfType & | operator|= (const SelfType &rhs) |
void | SetBit (uint32_t index, bool value) override |
bool | GetBit (uint32_t index) const override |
bool | AnySet () const override |
uint32_t | GetValidBitCount () const override |
void | Subtract (const SelfType &rhs) |
uint32_t | GetSize () const |
uint32_t | GetCapacity () const |
bool | Resize (uint32_t count) |
bool | AddBits (uint32_t count) |
void | Clear () |
bool | GetBack () const |
bool | PushBack (bool value) |
bool | PopBack () |
bool | Serialize (ISerializer &serializer) |
virtual void | SetBit (uint32_t index, bool value)=0 |
virtual bool | GetBit (uint32_t index) const =0 |
virtual bool | AnySet () const =0 |
virtual uint32_t | GetValidBitCount () const =0 |
fixed size data structure optimized for representing a resizable array of bits.
|
inlineoverridevirtual |
Returns true if any of the bits are set.
Implements AzNetworking::IBitset.
|
inlineoverridevirtual |
Gets the current value of the specified bit.
index | index of the bit to retrieve the value of |
Implements AzNetworking::IBitset.
|
inlineoverridevirtual |
Returns the number of bits that are represented in this fixed size bitset.
Implements AzNetworking::IBitset.
|
inline |
Assignment from same type.
rhs | instance to assign from |
|
inline |
Bitwise OR assignment operator.
rhs | instance to bitwise-or assign |
|
inline |
Base serialize method for all serializable structures or classes to implement.
serializer | ISerializer instance to use for serialization |
|
inlineoverridevirtual |
Sets the specified bit to the provided value.
index | index of the bit to set |
value | value to set the bit to |
Implements AzNetworking::IBitset.
|
inline |
Subtracts off the set bits of the passed in bitset.
rhs | the bits that we want to remove from the current bitset |