|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Factory/cache for Parameters instances. More...
#include <Parameters.h>
Static Public Member Functions | |
| static std::shared_ptr< Parameters > | GetParameters (ParameterType id) |
| Returns the cached repository for one parameter type. | |
| static std::shared_ptr< Parameters > | CreateUncached (ParameterType id) |
| Creates a fresh uncached repository for a runtime context. | |
| static std::shared_ptr< Parameters > | CreateUncachedRegistered (ParameterType id, const std::function< void(const std::shared_ptr< Parameters > &)> ®ister_before_postinit) |
| Creates a fresh uncached repository and registers it before post-initialization. | |
| static void | removeParameters (ParameterType id) |
| Removes one cached repository. | |
| static void | clear () |
Factory/cache for Parameters instances.
This class ensures that at most one repository exists per ParameterType. It is responsible for:
Definition at line 703 of file Parameters.h.
|
static |
Definition at line 590 of file Parameters.cpp.
|
static |
Creates a fresh uncached repository for a runtime context.
The returned repository is initialized and post-initialized exactly like the global singleton repository, but it is not stored in the process-wide factory cache.
Definition at line 541 of file Parameters.cpp.
|
static |
Creates a fresh uncached repository and registers it before post-initialization.
Some post-initialization steps create dependent blocks through DependentBlockManager, which can recursively call Parameters::GetInstance for the repository currently being built. Runtime-local contexts need the partially constructed repository to be visible before those dependent blocks are attached. The callback is invoked after the base repository is initialized but before ModelStrategy::postInitialization runs.
Definition at line 545 of file Parameters.cpp.
|
static |
Returns the cached repository for one parameter type.
If it does not exist yet:
| id | Parameter namespace to retrieve. |
Definition at line 522 of file Parameters.cpp.
|
static |
Removes one cached repository.
| id | Parameter namespace to remove. |
| Via | logging/error handling if the repository does not exist. |
Definition at line 560 of file Parameters.cpp.