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