Resource Tuner
Loading...
Searching...
No Matches
ResourceRegistry Class Reference

ResourceRegistry. More...

#include <ResourceRegistry.h>

Public Member Functions

void registerResource (ResourceConfigInfo *resourceConfigInfo, int8_t isBuSpecified=false)
 Used to register a Config specified (through YAML) Resource with Resource Tuner.
 
ResourceConfigInfogetResourceById (uint32_t resourceId)
 Get the ResourceConfigInfo object corresponding to the given Resource ID.
 

Detailed Description

ResourceRegistry.

Stores information Relating to all the Resources available for Tuning. Note: This information is extracted from Config YAML files.

Definition at line 102 of file ResourceRegistry.h.

Member Function Documentation

◆ getResourceById()

ResourceConfigInfo * ResourceRegistry::getResourceById ( uint32_t  resourceId)

Get the ResourceConfigInfo object corresponding to the given Resource ID.

Parameters
resourceIdAn unsigned 32 bit integer, representing the Resource ID.
Returns
ResourceConfigInfo*:

◆ registerResource()

void ResourceRegistry::registerResource ( ResourceConfigInfo resourceConfigInfo,
int8_t  isBuSpecified = false 
)

Used to register a Config specified (through YAML) Resource with Resource Tuner.

The Resource Info is parsed from YAML files. If the ResourceConfig provided is Malformed, then it will be freed as part of this routine, else it will be added to the "mResourceConfig" vector.


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