|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Registry mapping (WCoef, Model, Backend) -> coefficient factory function. More...
#include <WilsonCoefficientRegistry.h>
Public Member Functions | |
| void | register_creator (WCoef c, Model m, Backend b, CoefMaker mk) |
| Registers a creator function for a given (coefficient, model, backend). | |
| CoefPtr | create (const BuildContext &ctx, WCoef c) const |
| Creates a coefficient instance according to the provided build context. | |
Registry mapping (WCoef, Model, Backend) -> coefficient factory function.
The registry stores creator functions keyed by:
This is primarily used during the construction of CoefficientGroup objects: each group definition provides membership lists (WCoef) and the registry resolves which concrete WilsonCoefficient subclass to instantiate.
Definition at line 80 of file WilsonCoefficientRegistry.h.
| CoefPtr CoefficientRegistry::create | ( | const BuildContext & | ctx, |
| WCoef | c | ||
| ) | const |
Creates a coefficient instance according to the provided build context.
The function attempts to find a registered factory using the fallback strategy:
| ctx | Build context providing model/backend information and adapter access. |
| c | Coefficient identifier. |
| std::runtime_error | if no suitable factory is registered. |
Definition at line 125 of file WilsonCoefficientRegistry.cpp.
Registers a creator function for a given (coefficient, model, backend).
| c | Coefficient identifier. |
| m | Physics model. |
| b | Backend choice (Builtin / Marty). |
| mk | Factory function returning a new coefficient instance. |
Definition at line 90 of file WilsonCoefficientRegistry.h.