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

Abstract interface for batched parameter mutation in the statistics layer. More...

#include <IStatParamOptimizerProxy.h>

Inheritance diagram for IStatParamOptimizerProxy:

Public Member Functions

virtual ~IStatParamOptimizerProxy ()=default
 Virtual destructor.
 
virtual void set_value (const BlockName &block, const LhaID &id, scalar_t v)=0
 Stages a scalar value update for a parameter.
 
virtual void set_param (const BlockName &block, const LhaID &id, std::shared_ptr< Parameter > p)=0
 Stages a full parameter replacement/update.
 
virtual void remove (const BlockName &block, const LhaID &id)=0
 Stages the removal of a parameter.
 
virtual void commit (bool coalesce=true)=0
 Applies all staged operations.
 
virtual void clear ()=0
 Clears all staged operations without applying them.
 

Detailed Description

Abstract interface for batched parameter mutation in the statistics layer.

This interface is intentionally minimal and focuses on staging operations over parameters identified by:

  • a block name,
  • an LHA-like identifier,
  • and either a raw scalar value or a full Parameter object.

Changes are not required to take effect immediately: implementations may defer them until commit() is called.

Definition at line 48 of file IStatParamOptimizerProxy.h.

Constructor & Destructor Documentation

◆ ~IStatParamOptimizerProxy()

virtual IStatParamOptimizerProxy::~IStatParamOptimizerProxy ( )
virtualdefault

Virtual destructor.

Member Function Documentation

◆ clear()

virtual void IStatParamOptimizerProxy::clear ( )
pure virtual

Clears all staged operations without applying them.

Implemented in StatParamOptimizerProxy.

◆ commit()

virtual void IStatParamOptimizerProxy::commit ( bool  coalesce = true)
pure virtual

Applies all staged operations.

Implementations may use coalesce to merge or compact multiple pending edits before applying them. The exact coalescing behavior is adapter-defined.

Parameters
coalesceIf true, allows the implementation to merge/reduce pending operations.

Implemented in StatParamOptimizerProxy.

◆ remove()

virtual void IStatParamOptimizerProxy::remove ( const BlockName block,
const LhaID id 
)
pure virtual

Stages the removal of a parameter.

The parameter identified by (block, id) will be removed on the next commit().

Parameters
blockBlock containing the parameter.
idLHA-like identifier of the parameter to remove.

Implemented in StatParamOptimizerProxy.

◆ set_param()

virtual void IStatParamOptimizerProxy::set_param ( const BlockName block,
const LhaID id,
std::shared_ptr< Parameter p 
)
pure virtual

Stages a full parameter replacement/update.

The parameter identified by (block, id) will later be updated from the provided Parameter object when commit() is called.

Parameters
blockBlock containing the parameter.
idLHA-like identifier inside the block.
pShared pointer to the parameter payload to apply.

Implemented in StatParamOptimizerProxy.

◆ set_value()

virtual void IStatParamOptimizerProxy::set_value ( const BlockName block,
const LhaID id,
scalar_t  v 
)
pure virtual

Stages a scalar value update for a parameter.

The parameter identified by (block, id) will later be assigned the value v when commit() is called.

Parameters
blockBlock containing the parameter.
idLHA-like identifier inside the block.
vNew scalar value to assign.

Implemented in StatParamOptimizerProxy.


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