Interface for a structure optimized for representing an array of bits. More...
#include <IBitset.h>
Inherited by AzNetworking::FixedSizeBitset< CAPACITY, uint8_t >, AzNetworking::FixedSizeBitset< 1, uint8_t >, AzNetworking::FixedSizeVectorBitset< 255 >, AzNetworking::FixedSizeBitset< SIZE, ElementType >, AzNetworking::FixedSizeBitsetView, and AzNetworking::FixedSizeVectorBitset< CAPACITY, ElementType >.
Public Member Functions | |
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 |
Interface for a structure optimized for representing an array of bits.
|
pure virtual |
Returns true if any bit is raised, false otherwise.
Implemented in AzNetworking::FixedSizeBitset< SIZE, ElementType >, AzNetworking::FixedSizeBitset< CAPACITY, uint8_t >, AzNetworking::FixedSizeBitset< 1, uint8_t >, AzNetworking::FixedSizeBitsetView, AzNetworking::FixedSizeVectorBitset< CAPACITY, ElementType >, and AzNetworking::FixedSizeVectorBitset< 255 >.
|
pure virtual |
Gets the current value of the specified bit.
index | index of the bit to retrieve the value of |
Implemented in AzNetworking::FixedSizeBitset< SIZE, ElementType >, AzNetworking::FixedSizeBitset< CAPACITY, uint8_t >, AzNetworking::FixedSizeBitset< 1, uint8_t >, AzNetworking::FixedSizeBitsetView, AzNetworking::FixedSizeVectorBitset< CAPACITY, ElementType >, and AzNetworking::FixedSizeVectorBitset< 255 >.
|
pure virtual |
Returns the number of bits that are represented in this fixed size bitset.
Implemented in AzNetworking::FixedSizeBitset< SIZE, ElementType >, AzNetworking::FixedSizeBitset< CAPACITY, uint8_t >, AzNetworking::FixedSizeBitset< 1, uint8_t >, AzNetworking::FixedSizeBitsetView, AzNetworking::FixedSizeVectorBitset< CAPACITY, ElementType >, and AzNetworking::FixedSizeVectorBitset< 255 >.
|
pure virtual |
Sets the specified bit to the provided value.
index | index of the bit to set |
value | value to set the bit to |
Implemented in AzNetworking::FixedSizeBitset< SIZE, ElementType >, AzNetworking::FixedSizeBitset< CAPACITY, uint8_t >, AzNetworking::FixedSizeBitset< 1, uint8_t >, AzNetworking::FixedSizeBitsetView, AzNetworking::FixedSizeVectorBitset< CAPACITY, ElementType >, and AzNetworking::FixedSizeVectorBitset< 255 >.