Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
IMonitor< FlagType > Class Template Referenceabstract

Interface for monitoring flags inside the framework (internal or external). More...

#include <IMonitor.h>

Public Member Functions

virtual ~IMonitor ()=default
 Virtual destructor for proper polymorphic use.
 
virtual bool check_flag (FlagType flag)=0
 Checks if a specific flag is active.
 

Detailed Description

template<typename FlagType>
class IMonitor< FlagType >

Interface for monitoring flags inside the framework (internal or external).

Template Parameters
FlagTypeEnum-like type describing the set of flags (e.g. ExternalFlag, InternalFlag).

Implementations provide a type-safe way to query whether a particular flag is set in the underlying system (e.g. MemoryManager cache, runtime configuration).

Definition at line 32 of file IMonitor.h.

Constructor & Destructor Documentation

◆ ~IMonitor()

template<typename FlagType >
virtual IMonitor< FlagType >::~IMonitor ( )
virtualdefault

Virtual destructor for proper polymorphic use.

Member Function Documentation

◆ check_flag()

template<typename FlagType >
virtual bool IMonitor< FlagType >::check_flag ( FlagType  flag)
pure virtual

Checks if a specific flag is active.

Concrete implementations should route this query to the actual storage of flags (for example MemoryManager::getMemoryCache().flags or config.flags).

Parameters
flagThe flag to check.
Returns
True if active, false otherwise.

Implemented in APIAdapter, HyperisoMaster, and MartyAdapter.


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