24#include <OnixS/Senaf/MarketData/Export.h>
51 void copyTo(std::set<CpuIndex>&)
const;
76 std::set<CpuIndex>* 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.