The Sparta Modeling Framework
Loading...
Searching...
No Matches
core_example::CPUTopology::UnitInfo Struct Reference

Structure to represent a resource unit in device tree. More...

#include <CPUTopology.hpp>

Collaboration diagram for core_example::CPUTopology::UnitInfo:

Public Member Functions

 UnitInfo (const std::string &name, const std::string &parent_name, const std::string &human_name, const std::string &group_name, const uint32_t group_id, sparta::ResourceFactoryBase *factory, bool is_private_subtree=false)
 Constructor for UnitInfo.
 

Public Attributes

std::string name
 ResourceTreeNode name.
 
std::string parent_name
 ResourceTreeNode parent name.
 
std::string human_name
 ResourceTreeNode human-readable name.
 
std::string group_name
 TreeNode group name required for multiple execution units.
 
uint32_t group_id
 TreeNode group id required for multiple execution units.
 
sparta::ResourceFactoryBasefactory
 Factory required to create this particular resource.
 
bool is_private_subtree
 Flag to tell whether this node should be private to its parent.
 

Detailed Description

Structure to represent a resource unit in device tree.

Definition at line 32 of file CPUTopology.hpp.

Constructor & Destructor Documentation

◆ UnitInfo()

core_example::CPUTopology::UnitInfo::UnitInfo ( const std::string &  name,
const std::string &  parent_name,
const std::string &  human_name,
const std::string &  group_name,
const uint32_t  group_id,
sparta::ResourceFactoryBase factory,
bool  is_private_subtree = false 
)
inline

Constructor for UnitInfo.

Definition at line 58 of file CPUTopology.hpp.

Member Data Documentation

◆ factory

sparta::ResourceFactoryBase* core_example::CPUTopology::UnitInfo::factory

Factory required to create this particular resource.

Definition at line 50 of file CPUTopology.hpp.

◆ group_id

uint32_t core_example::CPUTopology::UnitInfo::group_id

TreeNode group id required for multiple execution units.

Definition at line 47 of file CPUTopology.hpp.

◆ group_name

std::string core_example::CPUTopology::UnitInfo::group_name

TreeNode group name required for multiple execution units.

Definition at line 44 of file CPUTopology.hpp.

◆ human_name

std::string core_example::CPUTopology::UnitInfo::human_name

ResourceTreeNode human-readable name.

Definition at line 41 of file CPUTopology.hpp.

◆ is_private_subtree

bool core_example::CPUTopology::UnitInfo::is_private_subtree

Flag to tell whether this node should be private to its parent.

Definition at line 53 of file CPUTopology.hpp.

◆ name

std::string core_example::CPUTopology::UnitInfo::name

ResourceTreeNode name.

Definition at line 35 of file CPUTopology.hpp.

◆ parent_name

std::string core_example::CPUTopology::UnitInfo::parent_name

ResourceTreeNode parent name.

Definition at line 38 of file CPUTopology.hpp.


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