Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
IParameterProxy< T, V > Class Template Referenceabstract

Abstract interface for reading parameters and basic metadata. More...

#include <IParameterProxy.h>

Public Member Functions

virtual scalar_t operator() (const T &x, const V &y) const =0
 Retrieves the scalar value for (block, id).
 
virtual bool exist (const T &block, const V &id) const =0
 Checks if a parameter exists for (block, id).
 
virtual double get_scale (const T &block) const =0
 Returns the scale associated to a block.
 

Detailed Description

template<typename T, typename V>
class IParameterProxy< T, V >

Abstract interface for reading parameters and basic metadata.

Defines a minimal contract to:

  • retrieve a scalar value for (block, id),
  • check existence of (block, id),
  • retrieve a block scale factor.

This interface is intentionally small so that clients can be agnostic of the underlying storage (Parameters, external libs, etc.).

Template Parameters
TBlock identifier type.
VParameter identifier type.

Definition at line 39 of file IParameterProxy.h.

Member Function Documentation

◆ exist()

template<typename T , typename V >
virtual bool IParameterProxy< T, V >::exist ( const T block,
const V id 
) const
pure virtual

Checks if a parameter exists for (block, id).

Parameters
blockBlock identifier.
idParameter identifier.
Returns
true if the entry exists, false otherwise.

Implemented in ParameterProxy.

◆ get_scale()

template<typename T , typename V >
virtual double IParameterProxy< T, V >::get_scale ( const T block) const
pure virtual

Returns the scale associated to a block.

Some blocks may define a scaling factor used to interpret values.

Parameters
blockBlock identifier.
Returns
Scale factor for that block.

Implemented in ParameterProxy.

◆ operator()()

template<typename T , typename V >
virtual scalar_t IParameterProxy< T, V >::operator() ( const T x,
const V y 
) const
pure virtual

Retrieves the scalar value for (block, id).

Parameters
blockBlock identifier.
idParameter identifier within the block.
Returns
The scalar value.

Implemented in ParameterProxy.


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