Type-safe NUMA node mask.
More...
#include <nodemask.hpp>
|
| 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< Nodemask > const &bitmask, F &&f, bool value=true) |
| | Invoke function for each bit in mask that matches value.
|
| |
| std::ostream & | FormatBitmask (std::ostream &os, Bitmask< Nodemask > 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 NUMA node mask.
- See also
- ForEach
Definition at line 23 of file nodemask.hpp.
◆ MakeFromNodestring()
| static Nodemask numapp::Nodemask::MakeFromNodestring |
( |
char const * | nodestring | ) |
|
|
inlinestatic |
Construct Nodemask from nodestring that considers current cpuset.
- Note
- Uses
numa_parse_nodestring to parse.
- Related man-page(s):
-
- Parameters
-
| nodestring | Mask expressed as nodestring. See man page. |
- Exceptions
-
| std::system_error | containing error code if parsing fails. |
Definition at line 41 of file nodemask.hpp.
◆ MakeFromNodestringAll()
| static Nodemask numapp::Nodemask::MakeFromNodestringAll |
( |
char const * | nodestring | ) |
|
|
inlinestatic |
Construct Nodemask from nodestring that considers does not consider current cpuset.
- Note
- Uses
numa_parse_nodestring_all to parse.
- Related man-page(s):
-
- Parameters
-
| nodestring | Mask expressed as nodestring. See man page. |
- Exceptions
-
| std::system_error | containing error code if parsing fails. |
Definition at line 56 of file nodemask.hpp.
The documentation for this struct was generated from the following file: