|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Unified proxy for block queries and diagnostics. More...
#include <BlockProxy.h>


Public Member Functions | |
| BlockProxy () | |
| Default constructor. | |
| bool | exists (const std::string &blockname, ParameterType pt) override |
| Checks whether a block exists for the given ParameterType. | |
| void | log_all_blocks (ParameterType pt) override |
| Logs all blocks for a given ParameterType. | |
| void | log_block (ParameterType pt, const std::string &blockname) override |
| Logs a single block for a given ParameterType. | |
| std::unordered_set< BlockName > | get_block_list (ParameterType pt) override |
| Retrieves the set of block names for a given ParameterType. | |
| std::map< LhaID, scalar_t > | get_block (ParameterType pt, const std::string &blockname) override |
| Retrieves the content of a block for a given ParameterType. | |
Public Member Functions inherited from IBlockProxy | |
| virtual | ~IBlockProxy ()=default |
Unified proxy for block queries and diagnostics.
BlockProxy exposes a single entry point to:
Internally:
Definition at line 51 of file BlockProxy.h.
|
inline |
Default constructor.
Initializes the internal BlockProvider and APIAdapter members.
Definition at line 58 of file BlockProxy.h.
|
overridevirtual |
Checks whether a block exists for the given ParameterType.
Delegates to BlockProvider::exists().
| blockname | Name of the block to check. |
| pt | ParameterType for which to check the block. |
Implements IBlockProxy.
Definition at line 3 of file BlockProxy.cpp.
|
overridevirtual |
Retrieves the content of a block for a given ParameterType.
Delegates to ::BlockProvider::get_block(pt), which provides the monitoring-layer implementation for retrieving block contents.
| pt | ParameterType to query. |
| blockname | Name of the block. |
pt. Implements IBlockProxy.
Definition at line 19 of file BlockProxy.cpp.
|
overridevirtual |
Retrieves the set of block names for a given ParameterType.
Delegates to ::APIAdapter::get_blocks_list(pt), which provides the monitoring-layer implementation for retrieving block names.
| pt | ParameterType to query. |
pt. Implements IBlockProxy.
Definition at line 15 of file BlockProxy.cpp.
|
overridevirtual |
Logs all blocks for a given ParameterType.
Delegates to BlockProvider::log_all_blocks().
Depending on the logging backend, this typically prints the content of the associated Parameters instance (which includes its BlockAccessor).
| pt | ParameterType whose blocks should be logged. |
Implements IBlockProxy.
Definition at line 7 of file BlockProxy.cpp.
|
overridevirtual |
Logs a single block for a given ParameterType.
Delegates to BlockProvider::log_block(), which itself calls ::Parameters::print_block(blockname).
Since print_block() streams this->blockAccessor->at(blockname), the output is produced using the operator<< overload for std::shared_ptr<BlockAccessor>.
| pt | ParameterType owning the block. |
| blockname | Name of the block to log. |
Implements IBlockProxy.
Definition at line 11 of file BlockProxy.cpp.