Creates a view into a subset of an IBitset.
More...
#include <FixedSizeBitsetView.h>
Inherits AzNetworking::IBitset.
Creates a view into a subset of an IBitset.
◆ FixedSizeBitsetView()
AzNetworking::FixedSizeBitsetView::FixedSizeBitsetView |
( |
IBitset & |
bitset, |
|
|
uint32_t |
startOffset, |
|
|
uint32_t |
count |
|
) |
| |
|
inline |
Construct a bitset view.
- Parameters
-
bitset | a bitset to create the view from |
startOffset | starting bit |
count | total number of bits to use |
◆ AnySet()
bool AzNetworking::FixedSizeBitsetView::AnySet |
( |
| ) |
const |
|
inlineoverridevirtual |
Gets the current value of the specified bit.
- Parameters
-
index | index of the bit to retrieve the value of |
- Returns
- boolean true if the bit is set, false otherwise
Implements AzNetworking::IBitset.
◆ GetBit()
bool AzNetworking::FixedSizeBitsetView::GetBit |
( |
uint32_t |
index | ) |
const |
|
inlineoverridevirtual |
Gets the current value of the specified bit.
- Parameters
-
index | index of the bit to retrieve the value of |
- Returns
- boolean true if the bit is set, false otherwise
Implements AzNetworking::IBitset.
◆ GetValidBitCount()
uint32_t AzNetworking::FixedSizeBitsetView::GetValidBitCount |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns the number of bits that are represented in this fixed size bitset.
- Returns
- the number of bits that are represented in this fixed size bitset
Implements AzNetworking::IBitset.
◆ SetBit()
void AzNetworking::FixedSizeBitsetView::SetBit |
( |
uint32_t |
index, |
|
|
bool |
value |
|
) |
| |
|
inlineoverridevirtual |
Sets the specified bit to the provided value.
- Parameters
-
index | index of the bit to set |
value | value to set the bit to |
Implements AzNetworking::IBitset.
The documentation for this class was generated from the following files:
- Code/Framework/AzNetworking/AzNetworking/DataStructures/FixedSizeBitsetView.h
- Code/Framework/AzNetworking/AzNetworking/DataStructures/FixedSizeBitsetView.inl