Inheritance diagram for mammut::topology::Topology:
mammut::topology::Unit

Public Member Functions

std::vector< Cpu * > getCpus () const
 
std::vector< PhysicalCore * > getPhysicalCores () const
 
std::vector< VirtualCore * > getVirtualCores () const
 
std::vector< PhysicalCore * > virtualToPhysical (const std::vector< VirtualCore * > &virtualCores) const
 
CpugetCpu (CpuId cpuId) const
 
PhysicalCoregetPhysicalCore (PhysicalCoreId physicalCoreId) const
 
VirtualCoregetVirtualCore (VirtualCoreId virtualCoreId) const
 
VirtualCoregetVirtualCore () const
 
- Public Member Functions inherited from mammut::topology::Unit
virtual void maximizeUtilization () const =0
 
virtual void resetUtilization () const =0
 

Protected Member Functions

 Topology (Communicator *const communicator)
 

Protected Attributes

std::vector< Cpu * > _cpus
 
std::vector< PhysicalCore * > _physicalCores
 
std::vector< VirtualCore * > _virtualCores
 
Communicator *const _communicator
 

Member Function Documentation

Cpu* mammut::topology::Topology::getCpu ( CpuId  cpuId) const

Returns the Cpu with the given identifier, or NULL if it is not present.

Parameters
cpuIdThe identifier of the Cpu.
Returns
The Cpu with the given identifier, or NULL if it is not present.
std::vector<Cpu*> mammut::topology::Topology::getCpus ( ) const

Returns the CPUs of the system.

Returns
A vector of CPus.
PhysicalCore* mammut::topology::Topology::getPhysicalCore ( PhysicalCoreId  physicalCoreId) const

Returns the physical core with the given identifier, or NULL if it is not present.

Parameters
physicalCoreIdThe identifier of the physical core.
Returns
The physical core with the given identifier, or NULL if it is not present.
std::vector<PhysicalCore*> mammut::topology::Topology::getPhysicalCores ( ) const

Returns the physical cores of the system.

Returns
A vector of physical cores.
VirtualCore* mammut::topology::Topology::getVirtualCore ( VirtualCoreId  virtualCoreId) const

Returns the virtual core with the given identifier, or NULL if it is not present.

Parameters
virtualCoreIdThe identifier of the virtual core.
Returns
The virtual core with the given identifier, or NULL if it is not present.
VirtualCore* mammut::topology::Topology::getVirtualCore ( ) const

Returns a virtual core belonging to the topology, or NULL if it is not present.

Returns
A virtual core belonging to the topology, or NULL if it is not present.
std::vector<VirtualCore*> mammut::topology::Topology::getVirtualCores ( ) const

Returns the virtual cores of the system.

Returns
A vector of virtual cores.
std::vector<PhysicalCore*> mammut::topology::Topology::virtualToPhysical ( const std::vector< VirtualCore * > &  virtualCores) const

Given a set of virtual cores, returns the physical cores to which these virtual cores belong.

Parameters
virtualCoresA set of virtual cores.
Returns
The physical cores to which these virtual cores belong.

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