A reference to one bit in a set.
More...
#include <ConcurrentBitset.h>
|
| std::atomic< Block_t > * | m_block |
| | Pointer to the block containing the referenced bit.
|
| Block_t | m_mask |
| | Mask of the referenced bit within the block.
|
A reference to one bit in a set.
These references are invalidated by calls to insert() or operator=.
Definition at line 584 of file ConcurrentBitset.h.
◆ reference()
| CxxUtils::ConcurrentBitset::reference::reference |
( |
Impl & | impl, |
|
|
bit_t | bit ) |
|
private |
Constructor.
- Parameters
-
| impl | ConcurrentBitset implementation object. |
| bit | Bit number to which this reference refers. |
◆ flip()
| reference & CxxUtils::ConcurrentBitset::reference::flip |
( |
| ) |
|
|
noexcept |
Invert the referenced bit.
◆ operator bool()
| CxxUtils::ConcurrentBitset::reference::operator bool |
( |
| ) |
const |
|
noexcept |
Return the value of the referenced bit.
◆ operator=() [1/2]
| reference & CxxUtils::ConcurrentBitset::reference::operator= |
( |
bool | val | ) |
|
|
noexcept |
Set the referenced bit to a given value.
- Parameters
-
| val | Value to which to set the referenced bit. |
◆ operator=() [2/2]
Copy the value of another referenced bit.
- Parameters
-
To allow:
bs1[1] = bs2[1];
friend class ConcurrentBitset
◆ operator~()
| bool CxxUtils::ConcurrentBitset::reference::operator~ |
( |
| ) |
const |
|
noexcept |
Return the complement of the value of the referenced bit.
◆ ConcurrentBitset
◆ m_block
| std::atomic<Block_t>* CxxUtils::ConcurrentBitset::reference::m_block |
|
private |
◆ m_mask
| Block_t CxxUtils::ConcurrentBitset::reference::m_mask |
|
private |
The documentation for this class was generated from the following file: