Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
DependencyPruner Class Reference

Concrete dependency-pruning adapter backed by Parameters. More...

#include <DependencyPruner.h>

Inheritance diagram for DependencyPruner:
Collaboration diagram for DependencyPruner:

Public Member Functions

void reattach_block (ParameterType tp, const BlockName &block_name) override
 Reattaches a previously detached dependent block.
 
void detach_block (ParameterType tp, const BlockName &block_name) override
 Detaches a dependent block from its upstream dependencies.
 
void reattach_parameter (ParameterType tp, const BlockName &block_name, const LhaID &id) override
 Reattaches a previously detached dependent parameter.
 
void detach_parameter (ParameterType tp, const BlockName &block_name, const LhaID &id) override
 Detaches a dependent parameter from its upstream dependencies.
 
- Public Member Functions inherited from IDependencyPruner< ParameterType, BlockName, LhaID >
virtual ~IDependencyPruner ()=default
 Virtual destructor.
 

Detailed Description

Concrete dependency-pruning adapter backed by Parameters.

Template specialization:

In practice, this class provides a simple façade to:

Definition at line 51 of file DependencyPruner.h.

Member Function Documentation

◆ detach_block()

void DependencyPruner::detach_block ( ParameterType  tp,
const BlockName block_name 
)
overridevirtual

Detaches a dependent block from its upstream dependencies.

Delegates to:

Parameters::GetInstance(tp)->detach_block(block_name);
static std::shared_ptr< Parameters > GetInstance(ParameterType id=ParameterType::SM)
Returns the singleton-like repository for a given parameter type.
Parameters
tpParameter namespace containing the block.
block_nameName of the block to detach.

Implements IDependencyPruner< ParameterType, BlockName, LhaID >.

Definition at line 7 of file DependencyPruner.cpp.

◆ detach_parameter()

void DependencyPruner::detach_parameter ( ParameterType  tp,
const BlockName block_name,
const LhaID id 
)
overridevirtual

Detaches a dependent parameter from its upstream dependencies.

Delegates to:

Parameters::GetInstance(tp)->detach_param(block_name, id);
Parameters
tpParameter namespace containing the parameter.
block_nameName of the parent block.
idIdentifier of the parameter to detach.

Implements IDependencyPruner< ParameterType, BlockName, LhaID >.

Definition at line 15 of file DependencyPruner.cpp.

◆ reattach_block()

void DependencyPruner::reattach_block ( ParameterType  tp,
const BlockName block_name 
)
overridevirtual

Reattaches a previously detached dependent block.

Delegates to:

Parameters::GetInstance(tp)->reattach_block(block_name);
Parameters
tpParameter namespace containing the block.
block_nameName of the block to reattach.

Implements IDependencyPruner< ParameterType, BlockName, LhaID >.

Definition at line 3 of file DependencyPruner.cpp.

◆ reattach_parameter()

void DependencyPruner::reattach_parameter ( ParameterType  tp,
const BlockName block_name,
const LhaID id 
)
overridevirtual

Reattaches a previously detached dependent parameter.

Delegates to:

Parameters::GetInstance(tp)->reattach_param(block_name, id);
Parameters
tpParameter namespace containing the parameter.
block_nameName of the parent block.
idIdentifier of the parameter to reattach.

Implements IDependencyPruner< ParameterType, BlockName, LhaID >.

Definition at line 11 of file DependencyPruner.cpp.


The documentation for this class was generated from the following files: