The Sparta Modeling Framework
Loading...
Searching...
No Matches
sparta::app::ArchNodeConfigFileApplicator Class Reference

Applies an architectural configuration (parameter defaults) to a virtual parameter tree. This does not support applying, only applyUnbound. More...

#include <ConfigApplicators.hpp>

Inheritance diagram for sparta::app::ArchNodeConfigFileApplicator:
Collaboration diagram for sparta::app::ArchNodeConfigFileApplicator:

Public Member Functions

 ArchNodeConfigFileApplicator (const std::string &loc_pattern, const std::string &filename, const std::vector< std::string > &include_paths)
 
std::string stringize () const override
 Render this parameter action as a string.
 
void tryApply (sparta::TreeNode *root, ApplySuccessCondition asc, ApplyFilter filter=ApplyFilter(), bool verbose=false) const override
 Apply the parameter contained in this object to the tree starting at root.
 
void applyUnbound (sparta::ParameterTree &ptree, bool verbose=false) const override
 Apply the parameter contained in this object to the unbound (virtual) parameter tree ptree.
 
- Public Member Functions inherited from sparta::app::ConfigApplicator
virtual ~ConfigApplicator ()
 Virtual destructor.
 
void apply (sparta::TreeNode *root, ApplyFilter filter=ApplyFilter(), bool verbose=false)
 Apply the parameter contained in this object to the tree starting at root.
 

Additional Inherited Members

- Public Types inherited from sparta::app::ConfigApplicator
enum class  ApplySuccessCondition { ASC_DEFER = 0 , ASC_MUST_ASSIGN = 1 , ASC_IGNORE = 2 , MAX_ASC }
 Type for dictating how tryApply should behave. More...
 
enum class  LocationFilter { ALL = 0 , AT_OR_BELOW_NODE , MAX_AF }
 Type for dictating how to filter the parameter application. (i.e. only apply to certain parts of the tree) More...
 

Detailed Description

Applies an architectural configuration (parameter defaults) to a virtual parameter tree. This does not support applying, only applyUnbound.

Definition at line 620 of file ConfigApplicators.hpp.

Constructor & Destructor Documentation

◆ ArchNodeConfigFileApplicator()

sparta::app::ArchNodeConfigFileApplicator::ArchNodeConfigFileApplicator ( const std::string &  loc_pattern,
const std::string &  filename,
const std::vector< std::string > &  include_paths 
)
inline

Definition at line 640 of file ConfigApplicators.hpp.

Member Function Documentation

◆ applyUnbound()

void sparta::app::ArchNodeConfigFileApplicator::applyUnbound ( sparta::ParameterTree ptree,
bool  verbose = false 
) const
inlineoverridevirtual

Apply the parameter contained in this object to the unbound (virtual) parameter tree ptree.

Note
This is done before device-tree-building so that parameters can be used for defining topology

Implements sparta::app::ConfigApplicator.

Definition at line 667 of file ConfigApplicators.hpp.

Here is the call graph for this function:

◆ stringize()

std::string sparta::app::ArchNodeConfigFileApplicator::stringize ( ) const
inlineoverridevirtual

Render this parameter action as a string.

Implements sparta::app::ConfigApplicator.

Definition at line 647 of file ConfigApplicators.hpp.

◆ tryApply()

void sparta::app::ArchNodeConfigFileApplicator::tryApply ( sparta::TreeNode root,
ApplySuccessCondition  required,
ApplyFilter  filter = ApplyFilter(),
bool  verbose = false 
) const
inlineoverridevirtual

Apply the parameter contained in this object to the tree starting at root.

Parameters
rootRoot of tree to apply parameter(s) too

Implements sparta::app::ConfigApplicator.

Definition at line 653 of file ConfigApplicators.hpp.


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