The Sparta Modeling Framework
Loading...
Searching...
No Matches
core_example::CPUTopology Class Reference
Inheritance diagram for core_example::CPUTopology:

Classes

struct  PortConnectionInfo
 Structure to represent a port binding between units in device tree. More...
 
struct  UnitInfo
 Structure to represent a resource unit in device tree. More...
 

Public Member Functions

 CPUTopology ()
 Constructor for CPUTopology.
 
auto setName (const std::string &topology) -> void
 Set the name for this topoplogy.
 
auto setNumCores (const uint32_t num_of_cores) -> void
 Set the number of cores in this processor.
 

Static Public Member Functions

static auto allocateTopology (const std::string &topology) -> CPUTopology *
 Static method to allocate memory for topology.
 

Public Attributes

uint32_t num_cores
 Public members used by CPUFactory to build and bind tree.
 
std::unique_ptr< CPUFactoriesfactories
 
std::string topology_name
 
std::vector< UnitInfounits
 
std::vector< PortConnectionInfoport_connections
 

Detailed Description

Definition at line 28 of file CPUTopology.hpp.

Constructor & Destructor Documentation

◆ CPUTopology()

core_example::CPUTopology::CPUTopology ( )
inline

Constructor for CPUTopology.

Definition at line 95 of file CPUTopology.hpp.

Member Function Documentation

◆ allocateTopology()

auto core_example::CPUTopology::allocateTopology ( const std::string &  topology) -> CPUTopology*
static

Static method to allocate memory for topology.

Definition at line 288 of file CPUTopology.cpp.

◆ setName()

auto core_example::CPUTopology::setName ( const std::string &  topology) -> void
inline

Set the name for this topoplogy.

Definition at line 100 of file CPUTopology.hpp.

◆ setNumCores()

auto core_example::CPUTopology::setNumCores ( const uint32_t  num_of_cores) -> void
inline

Set the number of cores in this processor.

Definition at line 107 of file CPUTopology.hpp.

Member Data Documentation

◆ factories

std::unique_ptr<CPUFactories> core_example::CPUTopology::factories

Definition at line 118 of file CPUTopology.hpp.

◆ num_cores

uint32_t core_example::CPUTopology::num_cores

Public members used by CPUFactory to build and bind tree.

Definition at line 117 of file CPUTopology.hpp.

◆ port_connections

std::vector<PortConnectionInfo> core_example::CPUTopology::port_connections

Definition at line 121 of file CPUTopology.hpp.

◆ topology_name

std::string core_example::CPUTopology::topology_name

Definition at line 119 of file CPUTopology.hpp.

◆ units

std::vector<UnitInfo> core_example::CPUTopology::units

Definition at line 120 of file CPUTopology.hpp.


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