#include "atomics.hh"
Inherits vector< AtomicU64 >.
Classes | |
class | Iter |
Public Member Functions | |
bool | all (bool toggle) const |
bool | any (bool toggle) const |
AtomicBits (const AtomicBits &)=delete | |
AtomicBits (size_t nbits) | |
Iter | begin () |
Iter | end () const |
Iter | iter (size_t pos) |
AtomicBits & | operator= (const AtomicBits &)=delete |
Iter | operator[] (size_t pos) |
bool | operator[] (size_t pos) const |
bool | set (size_t pos, bool toggle) |
size_t | size () const |
AtomicU64 & | u64 (size_t upos) |
uint64 | u64 (size_t upos) const |
size_t | usize () const |
~AtomicBits () | |
Protected Member Functions | |
std::vector< AtomicU64 > & | base () |
const std::vector< AtomicU64 > & | base () const |
Vector of atomic bits, operates in blocks of 64 bits.
~AtomicBits | ( | ) |
|
explicit |
|
explicitdelete |
|
protected |
|
protected |
size_t usize | ( | ) | const |
size_t size | ( | ) | const |
uint64 u64 | ( | size_t | upos | ) | const |
AtomicU64 & u64 | ( | size_t | upos | ) |
|
delete |
Iter iter | ( | size_t | pos | ) |
Iter begin | ( | ) |
Iter end | ( | ) | const |
bool all | ( | bool | toggle | ) | const |
bool any | ( | bool | toggle | ) | const |
bool set | ( | size_t | pos, |
bool | toggle | ||
) |
bool operator[] | ( | size_t | pos | ) | const |
Iter operator[] | ( | size_t | pos | ) |