Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
DependantBlockInfoProvider.cpp
Go to the documentation of this file.
2
3bool DependantBlockInfoProvider::is_dependent_block(ParameterType type, const std::string& block_name) const {
4 return Parameters::GetInstance(type)->is_dependent_block(BlockName(block_name));
5}
6
8 ParameterType type,
9 const std::string& block_name
10) const {
11 return Parameters::GetInstance(type)->get_source_blocks(BlockName(block_name));
12}
13
15 ParameterType type,
16 const std::string& block_name
17) const {
18 return Parameters::GetInstance(type)->get_dependent_blocks(BlockName(block_name));
19}
20
22 ParameterType type,
23 const std::string& block_name
24) const {
25 return Parameters::GetInstance(type)->get_all_source_blocks(BlockName(block_name));
26}
27
29 ParameterType type,
30 const std::string& block_name
31) const {
32 return Parameters::GetInstance(type)->get_all_dependent_blocks(BlockName(block_name));
33}
High-level adapter for dependent-block graph introspection.
ParameterType
Block identifier with alias support.
Definition BlockName.h:59
bool is_dependent_block(ParameterType type, const std::string &block_name) const
Checks whether a block is a DependentBlock.
std::vector< std::string > get_source_blocks(ParameterType type, const std::string &block_name) const
Returns the direct source blocks of a block.
std::vector< std::string > get_dependent_blocks(ParameterType type, const std::string &block_name) const
Returns the direct blocks depending on a block.
std::vector< std::string > get_all_source_blocks(ParameterType type, const std::string &block_name) const
Returns all transitive source blocks of a block.
std::vector< std::string > get_all_dependent_blocks(ParameterType type, const std::string &block_name) const
Returns all transitive blocks depending on a block.
static std::shared_ptr< Parameters > GetInstance(ParameterType id=ParameterType::SM)
Returns the singleton-like repository for a given parameter type.