Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
GeneralModelStrategy Class Reference

Placeholder / generic strategy class. More...

#include <Parameters.h>

Inheritance diagram for GeneralModelStrategy:
Collaboration diagram for GeneralModelStrategy:

Public Member Functions

std::unordered_set< BlockNameinitializeParameters (class Parameters &params) override
 Initializes the block set for the target parameter repository.
 
void postInitialization (Parameters &) override
 Performs additional initialization after raw blocks are loaded.
 
- Public Member Functions inherited from ModelStrategy
virtual ~ModelStrategy ()=default
 Virtual destructor.
 
void add_absent_block (std::unordered_set< BlockName > _)
 Stores the set of blocks absent during initialization.
 
void remove_absent_block ()
 Clears the list of absent blocks.
 

Additional Inherited Members

- Protected Attributes inherited from ModelStrategy
std::unordered_set< BlockNameabsent_blocks
 

Detailed Description

Placeholder / generic strategy class.

This strategy is declared in the interface but its behavior is not shown in the implementation snippet provided here. It appears intended as a generic or catch-all strategy for model-specific blocks outside the standard sets.

Warning
If kept in the public API, its implementation should be documented and provided consistently.

Definition at line 222 of file Parameters.h.

Member Function Documentation

◆ initializeParameters()

std::unordered_set< BlockName > GeneralModelStrategy::initializeParameters ( class Parameters params)
overridevirtual

Initializes the block set for the target parameter repository.

Typical implementations call Parameters::init_blocks with the appropriate ParameterType and return the set of missing blocks.

Parameters
paramsParameter repository being initialized.
Returns
Set of block names that were expected but absent from the input.

Implements ModelStrategy.

◆ postInitialization()

void GeneralModelStrategy::postInitialization ( Parameters )
inlineoverridevirtual

Performs additional initialization after raw blocks are loaded.

This hook is typically used to:

  • initialize helper modules,
  • create derived / dependent blocks,
  • add fallback blocks when some inputs are absent,
  • synchronize scales or helper quantities.
Parameters
paramsParameter repository being post-initialized.

Current implementation does nothing.

Implements ModelStrategy.

Definition at line 234 of file Parameters.h.


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