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

Abstract view of a parameter mapping database. More...

#include <IMappingDatabaseAdapter.h>

Inheritance diagram for IMappingDatabaseAdapter:

Public Member Functions

virtual ~IMappingDatabaseAdapter ()=default
 
virtual std::unordered_map< std::string, InterpretedParamgetParams () const =0
 Returns all parameter mappings stored in the database.
 
virtual std::optional< InterpretedParamgetParam (const std::string &name) const =0
 Returns a single parameter mapping by name.
 
virtual std::string instanceName () const =0
 Returns a human-readable name for this mapping instance.
 

Detailed Description

Abstract view of a parameter mapping database.

A mapping database adapter is responsible for:

  • providing the full parameter map (name -> InterpretedParam),
  • offering single-parameter lookup by name,
  • reporting a human-readable instance name for diagnostics.

Concrete implementations:

Definition at line 32 of file IMappingDatabaseAdapter.h.

Constructor & Destructor Documentation

◆ ~IMappingDatabaseAdapter()

virtual IMappingDatabaseAdapter::~IMappingDatabaseAdapter ( )
virtualdefault

Member Function Documentation

◆ getParam()

virtual std::optional< InterpretedParam > IMappingDatabaseAdapter::getParam ( const std::string &  name) const
pure virtual

Returns a single parameter mapping by name.

Parameters
nameLogical parameter name (e.g. "m_B_s", "alpha_s").
Returns
Optional InterpretedParam; std::nullopt if the parameter is not present in the database.

Implemented in DefaultMappingDatabaseAdapter.

◆ getParams()

virtual std::unordered_map< std::string, InterpretedParam > IMappingDatabaseAdapter::getParams ( ) const
pure virtual

Returns all parameter mappings stored in the database.

Returns
Map from parameter name to InterpretedParam.

Implemented in DefaultMappingDatabaseAdapter.

◆ instanceName()

virtual std::string IMappingDatabaseAdapter::instanceName ( ) const
pure virtual

Returns a human-readable name for this mapping instance.

This is useful when working with multiple mapping databases at once (e.g. "default", "benchmark1", "user_override", ...).

Returns
Instance name.

Implemented in DefaultMappingDatabaseAdapter.


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