famouso::mw::afp::defrag::detail::Bit Class Reference
Represents a bit inside a byte. More...
#include <BitArray.h>
Public Member Functions | |
Bit (uint8_t &byte, uint8_t mask) | |
Constructor. | |
void | set () |
Set the bit (set to one). | |
void | clear () |
Clear the bit (set to zero). | |
bool | get () const |
Returns whether this bit is set. | |
bool | value () const |
Returns whether this bit is set. | |
Bit & | operator= (bool value) |
Operator for assigning a boolean value to a Bit. |
Detailed Description
Represents a bit inside a byte.
- See also:
- BitArray
Constructor & Destructor Documentation
famouso::mw::afp::defrag::detail::Bit::Bit | ( | uint8_t & | byte, | |
uint8_t | mask | |||
) | [inline] |
Constructor.
- Parameters:
-
byte Byte which the bit is a part of mask Mask defining the bit position
Member Function Documentation
void famouso::mw::afp::defrag::detail::Bit::clear | ( | ) | [inline] |
Clear the bit (set to zero).
Referenced by operator=().
bool famouso::mw::afp::defrag::detail::Bit::get | ( | ) | const [inline] |
Returns whether this bit is set.
Bit& famouso::mw::afp::defrag::detail::Bit::operator= | ( | bool | value | ) | [inline] |
void famouso::mw::afp::defrag::detail::Bit::set | ( | ) | [inline] |
Set the bit (set to one).
Referenced by famouso::mw::afp::defrag::DuplicateChecker< DCP >::new_fragment().
bool famouso::mw::afp::defrag::detail::Bit::value | ( | ) | const [inline] |
Returns whether this bit is set.
Referenced by famouso::mw::afp::defrag::DuplicateChecker< DCP >::new_fragment().
The documentation for this class was generated from the following file:
- include/mw/afp/defrag/detail/BitArray.h