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

Interface for retrieving leaf source parameters from a dependency graph. More...

#include <ISourcesProvider.h>

Inheritance diagram for ISourcesProvider:

Public Member Functions

virtual ~ISourcesProvider ()=default
 Virtual destructor for interface.
 
virtual std::unordered_set< ParamIdget_all_leaf_sources (const std::unordered_set< ParamId > &param_ids) const =0
 Retrieves all leaf (ultimate) source parameters for the given set of parameters.
 

Detailed Description

Interface for retrieving leaf source parameters from a dependency graph.

Implementations of this interface provide a way to:

  • traverse the parameter dependency graph,
  • extract the ultimate “leaf” source parameters that feed a given set of dependent parameters.

Definition at line 29 of file ISourcesProvider.h.

Constructor & Destructor Documentation

◆ ~ISourcesProvider()

virtual ISourcesProvider::~ISourcesProvider ( )
virtualdefault

Virtual destructor for interface.

Member Function Documentation

◆ get_all_leaf_sources()

virtual std::unordered_set< ParamId > ISourcesProvider::get_all_leaf_sources ( const std::unordered_set< ParamId > &  param_ids) const
pure virtual

Retrieves all leaf (ultimate) source parameters for the given set of parameters.

The implementation is expected to:

  • follow all dependency links starting from each ParamId in param_ids,
  • collect the parameters that do not depend on anything else (or are considered primitive / external inputs),
  • return the union of those leaf parameters.
Parameters
param_idsSet of parameter IDs to start from.
Returns
Set of all leaf source ParamIds.

Implemented in ParamSourcesProvider.


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