|
| Bitmask & | operator= (Bitmask const &rhs) noexcept |
| | Copy from rhs to this.
|
| |
| bool | operator== (Bitmask const &rhs) const noexcept |
| |
| bool | operator!= (Bitmask const &rhs) const noexcept |
| |
| struct bitmask const * | GetNative () const noexcept |
| | Access native bitmask type.
|
| |
| struct bitmask * | GetNative () noexcept |
| | Access native bitmask type.
|
| |
| std::size_t | GetSize () const noexcept |
| | Query number of bits in mask.
|
| |
| bool | Test (unsigned int position) const noexcept |
| | Test if bit in specified position is set.
|
| |
| Bitmask & | Set (unsigned int position, bool value=true) noexcept |
| | Set bit in position to specified value.
|
| |
| Bitmask & | Reset (unsigned int position) noexcept |
| | Sets bit in specified position to false.
|
| |
| | Bitmask (NumaBitmaskPtr &&bitmask) |
| | Construction from native bitmask type can be error prone in that the mask wasn't allocated using the correction function.
|
| |
| void | ForEach (Bitmask< Cpumask > const &bitmask, F &&f, bool value=true) |
| | Invoke function for each bit in mask that matches value.
|
| |
| std::ostream & | FormatBitmask (std::ostream &os, Bitmask< Cpumask > const &mask, int min_bits) |
| | Formats mask and inserts it to os.
|
| |
| std::ostream & | FormatBitmask (std::ostream &os, bitmask const *mask, int min_bits) |
| | Formats mask and inserts it to os.
|
| |
| void | ForEach (Bitmask< Cpumask > const &bitmask, F &&f, bool value=true) |
| | Invoke function for each bit in mask that matches value.
|
| |
| std::ostream & | FormatBitmask (std::ostream &os, Bitmask< Cpumask > const &mask, int min_bits) |
| | Formats mask and inserts it to os.
|
| |
| std::ostream & | FormatBitmask (std::ostream &os, bitmask const *mask, int min_bits) |
| | Formats mask and inserts it to os.
|
| |
Type-safe CPU mask.
- See also
- ForEach
Definition at line 25 of file cpumask.hpp.