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 (CpuIndexes &) 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. | |
std::string | toString () const |
Returns the string representation. | |
Represents set of CPU indices.