49 void copyTo(std::set<CpuIndex>&)
const;
74 std::set<CpuIndex>* indices_;
Represents set of CPU indices.
ThreadAffinity()
Initializes empty set.
std::string toString() const
Returns textual presentation.
ThreadAffinity & operator=(const ThreadAffinity &)
Re-initializes instance as copy of other set.
ThreadAffinity(const ThreadAffinity &)
Initializes as copy of other set.
bool empty() const
Indicates whether is empty.
static ThreadAffinity deserialize(const std::string &)
Returns thread affinity of given string presentation.
~ThreadAffinity()
Utilizes all the resources.
void copyTo(std::set< CpuIndex > &) const
Copies set into another set.
void toString(std::string &) const
Serializes indices into text.
bool erase(CpuIndex index)
Removes CPU index from the set.
void clear()
Makes set empty.
bool insert(CpuIndex index)
Adds CPU index into set.
int CpuIndex
Zero-based index of CPU.
std::ostream & operator<<(std::ostream &, const Error &)
Make it printable to formatted C++ I/O streams.