fixed size data structure optimized for representing a resizable array of bits.
More...
#include <FixedSizeVectorBitset.h>
Inherits AzNetworking::IBitset.
template<AZStd::size_t CAPACITY, typename ElementType = uint8_t>
class AzNetworking::FixedSizeVectorBitset< CAPACITY, ElementType >
fixed size data structure optimized for representing a resizable array of bits.
template<AZStd::size_t CAPACITY, typename ElementType >
Returns true if any of the bits are set.
- Returns
- boolean true if any bit is set, false otherwise
Implements AzNetworking::IBitset.
template<AZStd::size_t CAPACITY, typename ElementType >
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.
template<AZStd::size_t CAPACITY, typename ElementType >
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.
template<AZStd::size_t CAPACITY, typename ElementType >
Assignment from same type.
- Parameters
-
rhs | instance to assign from |
template<AZStd::size_t CAPACITY, typename ElementType >
Bitwise OR assignment operator.
- Parameters
-
rhs | instance to bitwise-or assign |
- Returns
- reference to the LHS
template<AZStd::size_t CAPACITY, typename ElementType >
Base serialize method for all serializable structures or classes to implement.
- Parameters
-
serializer | ISerializer instance to use for serialization |
- Returns
- boolean true for success, false for serialization failure
template<AZStd::size_t CAPACITY, typename ElementType >
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.
template<AZStd::size_t CAPACITY, typename ElementType >
Subtracts off the set bits of the passed in bitset.
- Parameters
-
rhs | the bits that we want to remove from the current bitset |
The documentation for this class was generated from the following files:
- Code/Framework/AzNetworking/AzNetworking/DataStructures/FixedSizeVectorBitset.h
- Code/Framework/AzNetworking/AzNetworking/DataStructures/FixedSizeVectorBitset.inl