|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Concrete adapter combining monitoring and path providing functionalities. More...
#include <APIAdapter.h>


Public Member Functions | |
| bool | check_flag (ExternalFlag flag) |
| Checks the status of a specific external flag. | |
| fs::path | get_path (APIPath path_name) override |
| Retrieves a specific filesystem path exposed by APIPath. | |
| std::unordered_set< BlockName > | get_all_blocks () |
| Retrieves all block names across all available model types. | |
| std::unordered_set< BlockName > | get_blocks_list (ParameterType param_type=ParameterType::SM) |
| Retrieves block names for a specific parameter type. | |
| std::map< LhaID, scalar_t > | get_block_infos (const BlockName &block, ParameterType param_type=ParameterType::SM) |
| Retrieves all parameter values inside a given block. | |
| std::vector< ParameterType > | get_type_of_block (const BlockName &block) |
| Retrieves the list of parameter types that own a specific block. | |
Public Member Functions inherited from IMonitor< ExternalFlag > | |
| virtual | ~IMonitor ()=default |
| Virtual destructor for proper polymorphic use. | |
Public Member Functions inherited from IPathProvider< APIPath > | |
| virtual | ~IPathProvider ()=default |
| Virtual destructor for polymorphic use. | |
Public Member Functions inherited from IDataMonitor | |
| virtual | ~IDataMonitor ()=default |
| virtual | ~IDataMonitor ()=default |
| Virtual destructor for polymorphic use. | |
Concrete adapter combining monitoring and path providing functionalities.
This class provides a unified, high-level API to:
It is intended for external tools (CLI, GUI, REST API) that need a read-only view over the internal parameter state managed by Hyperiso.
Typical usage:
Definition at line 52 of file APIAdapter.h.
|
virtual |
Checks the status of a specific external flag.
Delegates to MemoryManager::getMemoryCache().config.flags.
| flag | The flag to check. |
Implements IMonitor< ExternalFlag >.
Definition at line 11 of file APIAdapter.cpp.
|
virtual |
Retrieves all block names across all available model types.
This may iterate over all ParameterType instances allowed by MemoryManager and collect their block names.
Implements IDataMonitor.
Definition at line 19 of file APIAdapter.cpp.
|
virtual |
Retrieves all parameter values inside a given block.
Delegates to Parameters::GetInstance(param_type)->get_block_infos(block).
| block | Name of the block. |
| param_type | Type of the model (default: SM). |
Implements IDataMonitor.
Definition at line 3 of file APIAdapter.cpp.
|
virtual |
Retrieves block names for a specific parameter type.
Delegates to Parameters::GetInstance(param_type)->get_blocks_list().
| param_type | The parameter type (default: SM). |
Implements IDataMonitor.
Definition at line 7 of file APIAdapter.cpp.
|
overridevirtual |
Retrieves a specific filesystem path exposed by APIPath.
APIPath::LHA_PATH returns the LHA or spectrum path stored in MemoryManager::getMemoryCache().lha_path. Provider-backed entries return the active IPathsProvider values, including pre-init overrides.
| path_name | The requested path. |
Implements IPathProvider< APIPath >.
Definition at line 15 of file APIAdapter.cpp.
|
virtual |
Retrieves the list of parameter types that own a specific block.
Internally relies on ParamRouter::GetType(block) to list all ParameterType values for which the block is registered.
| block | The name of the block. |
Implements IDataMonitor.
Definition at line 29 of file APIAdapter.cpp.