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 a lvalue that can be returned from operator[].
- Template Parameters
-
TBitSetCM | A constant or mutable TBitSet. |
Definition at line 163 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 >
Returns the represented bit number.
- Returns
- The bit that this object refers to.
Definition at line 197 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 228 of file bitset.hpp.
template<typename TInterface , TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM >
Implicit conversion to bool.
- Returns
- The value of the represented bit.
Definition at line 218 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 213 of file bitset.hpp.
template<typename TInterface , TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM >
Does not manipulate the bit, but returns its negated value.
- Returns
- The negated value of the represented bit.
Definition at line 223 of file bitset.hpp.