template<typename TInterface, TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM>
class alib::lang::TBitSet< TInterface, TEnd, TBegin >::Reference< TBitSetCM >
A publicly-accessible nested class, used as a proxy object to allow users to interact with individual bits of a bitset. The primary use of this type is to provide an lvalue that can be returned from operator[].
- Template Parameters
-
TBitSetCM | A constant or mutable TBitSet. |
Definition at line 164 of file bitset.hpp.
template<typename TInterface , TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM >
template<typename TInterface , TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM >
constexpr TInterface Bit |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Returns the represented bit number.
- Returns
- The bit that this object refers to.
Definition at line 198 of file bitset.hpp.
template<typename TInterface , TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM >
Flips the represented bit.
- Returns
- A reference to
this
.
Definition at line 229 of file bitset.hpp.
template<typename TInterface , TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM >
constexpr operator bool |
( |
| ) |
|
|
inlineconstexprnoexcept |
Implicit conversion to bool.
- Returns
- The value of the represented bit.
Definition at line 219 of file bitset.hpp.
template<typename TInterface , TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM >
Sets or resets the represented bit.
- Parameters
-
val | The value to assign to the represented bit. |
- Returns
- A reference to
this
.
Definition at line 214 of file bitset.hpp.
template<typename TInterface , TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM >
constexpr bool operator~ |
( |
| ) |
|
|
inlineconstexprnoexcept |
Does not manipulate the bit, but returns its negated value.
- Returns
- The negated value of the represented bit.
Definition at line 224 of file bitset.hpp.