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

Implements the Statistic nuisance-path port using a Core path port. More...

#include <RuntimeNuisancePathsAdapter.h>

Inheritance diagram for RuntimeNuisancePathsAdapter:
Collaboration diagram for RuntimeNuisancePathsAdapter:

Public Member Functions

 RuntimeNuisancePathsAdapter ()
 Construct an adapter backed by the active Core runtime.
 
 RuntimeNuisancePathsAdapter (std::shared_ptr< IPathProvider< APIPath > > path_provider)
 Construct an adapter with an injected Core path provider.
 
fs::path default_nuisances_path () const override
 Returns the path to the built-in nuisance definition file.
 
fs::path user_nuisances_path () const override
 Returns the path to the user override nuisance definition file.
 
- Public Member Functions inherited from INuisancePathsProvider
virtual ~INuisancePathsProvider ()=default
 Virtual destructor for polymorphic use.
 

Detailed Description

Implements the Statistic nuisance-path port using a Core path port.

The production constructor uses APIAdapter, which delegates path lookup to the IPathsProvider currently installed in MemoryManager. This preserves packaged-wheel asset roots and pre-initialization path overrides without exposing MemoryManager to the Statistic domain.

Definition at line 24 of file RuntimeNuisancePathsAdapter.h.

Constructor & Destructor Documentation

◆ RuntimeNuisancePathsAdapter() [1/2]

RuntimeNuisancePathsAdapter::RuntimeNuisancePathsAdapter ( )

Construct an adapter backed by the active Core runtime.

Definition at line 8 of file RuntimeNuisancePathsAdapter.cpp.

◆ RuntimeNuisancePathsAdapter() [2/2]

RuntimeNuisancePathsAdapter::RuntimeNuisancePathsAdapter ( std::shared_ptr< IPathProvider< APIPath > >  path_provider)
explicit

Construct an adapter with an injected Core path provider.

Parameters
path_providerProvider implementing the Core APIPath port.
Exceptions
std::invalid_argumentwhen path_provider is null.

Definition at line 13 of file RuntimeNuisancePathsAdapter.cpp.

Member Function Documentation

◆ default_nuisances_path()

fs::path RuntimeNuisancePathsAdapter::default_nuisances_path ( ) const
overridevirtual

Returns the path to the built-in nuisance definition file.

Returns
Filesystem path to the default nuisance registry.

Implements INuisancePathsProvider.

Definition at line 25 of file RuntimeNuisancePathsAdapter.cpp.

◆ user_nuisances_path()

fs::path RuntimeNuisancePathsAdapter::user_nuisances_path ( ) const
overridevirtual

Returns the path to the user override nuisance definition file.

Returns
Filesystem path to the user nuisance registry. The returned path may be empty when no user override file is configured.

Implements INuisancePathsProvider.

Definition at line 30 of file RuntimeNuisancePathsAdapter.cpp.


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