allpix::StoreDelegate

Module: Delegate classes

Delegate to store the message in memory for fetching the history. More…

#include <delegates.h>

Inherits from allpix::ModuleDelegate< T >, allpix::BaseDelegate

Public Functions

Name
StoreDelegate(MsgFlags flags, T * obj)
Construct a function delegate for the given module.
virtual void process(std::shared_ptr< BaseMessage > msg, std::string , DelegateTypes & ) override
Stores the received message in the delegate until the end of the event.

Additional inherited members

Public Functions inherited from allpix::ModuleDelegate< T >

Name
ModuleDelegate(MsgFlags flags, T * obj)
Construct a module delegate for the given module.
virtual std::string getUniqueName() override
Get the unique name of the bound module.
virtual std::shared_ptr< Detector > getDetector() const override
Get the detector bound to this module.

Protected Attributes inherited from allpix::ModuleDelegate< T >

Name
T *const obj_

Public Functions inherited from allpix::BaseDelegate

Name
BaseDelegate(const BaseDelegate & ) =delete
Copying a delegate is not allowed.
BaseDelegate & operator=(const BaseDelegate & ) =delete
Copying a delegate is not allowed.
BaseDelegate(BaseDelegate && ) =default
Enable default move behaviour.
BaseDelegate & operator=(BaseDelegate && ) =default
Enable default move behaviour.
BaseDelegate(MsgFlags flags)
Construct a delegate with the supplied flags.
virtual ~BaseDelegate() =default
Essential virtual destructor.
bool isRequired() const
Check if delegate has a required message.
MsgFlags getFlags() const
Get the flags for this delegate.
virtual std::shared_ptr< Detector > getDetector() const =0
Get the detector bound to a delegate.
virtual std::string getUniqueName() =0
Get the unique identifier for the bound object.

Protected Attributes inherited from allpix::BaseDelegate

Name
MsgFlags flags_

Detailed Description

template <typename T >
class allpix::StoreDelegate;

Delegate to store the message in memory for fetching the history.

Public Functions Documentation

function StoreDelegate

inline StoreDelegate(
    MsgFlags flags,
    T * obj
)

Construct a function delegate for the given module.

Parameters:

  • flags Messenger flags (note that REQUIRED does not mean all related objects are fetched)
  • obj Module object this delegate should store the message for

function process

inline virtual void process(
    std::shared_ptr< BaseMessage > msg,
    std::string ,
    DelegateTypes & 
) override

Stores the received message in the delegate until the end of the event.

Parameters:

Reimplements: allpix::BaseDelegate::process


Updated on 2025-02-27 at 14:14:46 +0000