OnixS BME SENAF Handler C++ library  2.0.1
API documentation
ThreadAffinity Class Reference

#include <OnixS/Senaf/MarketData/ThreadAffinity.h>

Public Member Functions

 ThreadAffinity ()
 
 ThreadAffinity (const ThreadAffinity &)
 
 ~ThreadAffinity ()
 
bool empty () const
 
void copyTo (std::set< CpuIndex > &) const
 
bool insert (CpuIndex index)
 
bool erase (CpuIndex index)
 
void clear ()
 
ThreadAffinityoperator= (const ThreadAffinity &)
 
std::string toString () const
 
void toString (std::string &) const
 

Static Public Member Functions

static ThreadAffinity deserialize (const std::string &)
 

Detailed Description

Definition at line 33 of file ThreadAffinity.h.

Constructor & Destructor Documentation

Initializes empty set.

Initializes as copy of other set.

Utilizes all the resources.

Member Function Documentation

void clear ( )

Makes set empty.

void copyTo ( std::set< CpuIndex > &  ) const

Copies set into another set.

static ThreadAffinity deserialize ( const std::string &  )
static

Returns thread affinity of given string presentation.

bool empty ( ) const

Indicates whether is empty.

bool erase ( CpuIndex  index)

Removes CPU index from the set.

bool insert ( CpuIndex  index)

Adds CPU index into set.

ThreadAffinity& operator= ( const ThreadAffinity )

Re-initializes instance as copy of other set.

std::string toString ( ) const
inline

Returns textual presentation.

Definition at line 77 of file ThreadAffinity.h.

void toString ( std::string &  ) const

Serializes indices into text.


The documentation for this class was generated from the following file: