#include <ThreadAffinity.h>
Public Member Functions | |
ThreadAffinity () | |
ThreadAffinity (const ThreadAffinity &) | |
~ThreadAffinity () | |
bool | empty () const |
void | copyTo (std::set< CpuIndex > &) const |
bool | insert (CpuIndex index) |
bool | erase (CpuIndex index) |
void | clear () |
ThreadAffinity & | operator= (const ThreadAffinity &) |
std::string | toString () const |
void | toString (std::string &) const |
Static Public Member Functions | |
static ThreadAffinity | deserialize (const std::string &) |
Definition at line 33 of file ThreadAffinity.h.
ThreadAffinity | ( | ) |
Initializes empty set.
ThreadAffinity | ( | const ThreadAffinity & | ) |
Initializes as copy of other set.
~ThreadAffinity | ( | ) |
Utilizes all the resources.
void clear | ( | ) |
Makes set empty.
void copyTo | ( | std::set< CpuIndex > & | ) | const |
Copies set into another set.
|
static |
Returns thread affinity of given string presentation.
bool empty | ( | ) | const |
Indicates whether is empty.
bool erase | ( | CpuIndex | index | ) |
Removes CPU index from the set.
bool insert | ( | CpuIndex | index | ) |
Adds CPU index into set.
ThreadAffinity& operator= | ( | const ThreadAffinity & | ) |
Re-initializes instance as copy of other set.
|
inline |
Returns textual presentation.
Definition at line 77 of file ThreadAffinity.h.
void toString | ( | std::string & | ) | const |
Serializes indices into text.