join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
join::CpuTopology Class Reference

CPU topology detector. More...

#include <cpu.hpp>

Public Member Functions

 CpuTopology (const CpuTopology &other)=delete
 copy constructor.
 
CpuTopologyoperator= (const CpuTopology &other)=delete
 copy assignment operator.
 
const std::vector< PhysicalCore > & cores () const noexcept
 get all physical cores.
 
const std::vector< NumaNode > & nodes () const noexcept
 get all NUMA nodes.
 

Static Public Member Functions

static const CpuTopologyinstance ()
 get instance.
 

Detailed Description

CPU topology detector.

Constructor & Destructor Documentation

◆ CpuTopology()

join::CpuTopology::CpuTopology ( const CpuTopology & other)
delete

copy constructor.

Parameters
otherother object to copy.

Member Function Documentation

◆ cores()

const std::vector< PhysicalCore > & CpuTopology::cores ( ) const
noexcept

get all physical cores.

Returns
vector of physical cores.

◆ instance()

const CpuTopology * CpuTopology::instance ( )
static

get instance.

Returns
CpuTopology instance.

◆ nodes()

const std::vector< NumaNode > & CpuTopology::nodes ( ) const
noexcept

get all NUMA nodes.

Returns
vector of NUMA nodes.

◆ operator=()

CpuTopology & join::CpuTopology::operator= ( const CpuTopology & other)
delete

copy assignment operator.

Parameters
otherother object to copy.
Returns
current object.

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