|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Per-thread parameter runtime used to isolate Monte-Carlo workers. More...
#include <ParameterRuntimeContext.h>
Public Member Functions | |
| ParameterRuntimeContext () | |
| std::shared_ptr< Parameters > | get_parameters (ParameterType id) |
| std::shared_ptr< BlockAccessor > | extract_blocks (const std::unordered_set< BlockName > &block_names) const |
| std::unordered_set< BlockName > | available_input_blocks () const |
| const std::vector< ParameterType > & | parameter_types () const |
Static Public Member Functions | |
| static ParameterRuntimeContext * | current () |
Friends | |
| class | ScopedParameterRuntimeContext |
Per-thread parameter runtime used to isolate Monte-Carlo workers.
A context owns an independent input-cache clone and an independent cache of Parameters repositories. When installed through ScopedParameterRuntimeContext, Parameters::GetInstance routes all reads/writes to this local context instead of the process-global singleton repositories.
Definition at line 22 of file ParameterRuntimeContext.h.
| ParameterRuntimeContext::ParameterRuntimeContext | ( | ) |
Definition at line 14 of file ParameterRuntimeContext.cpp.
| std::unordered_set< BlockName > ParameterRuntimeContext::available_input_blocks | ( | ) | const |
Definition at line 78 of file ParameterRuntimeContext.cpp.
|
static |
Definition at line 86 of file ParameterRuntimeContext.cpp.
| std::shared_ptr< BlockAccessor > ParameterRuntimeContext::extract_blocks | ( | const std::unordered_set< BlockName > & | block_names | ) | const |
Definition at line 72 of file ParameterRuntimeContext.cpp.
| std::shared_ptr< Parameters > ParameterRuntimeContext::get_parameters | ( | ParameterType | id | ) |
Definition at line 46 of file ParameterRuntimeContext.cpp.
| const std::vector< ParameterType > & ParameterRuntimeContext::parameter_types | ( | ) | const |
Definition at line 82 of file ParameterRuntimeContext.cpp.
|
friend |
Definition at line 40 of file ParameterRuntimeContext.h.