OnixS C++ CME Market Data Handler  2.56.0.0
Public Member Functions | Static Public Member Functions | List of all members
ThreadAffinity Class Reference

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.
 
ThreadAffinityoperator= (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.
 

Detailed Description

Represents set of CPU indices.