allpix::VectorBindDelegate

Module: Delegate classes

Delegate for binding multiple message to a vector. More…

#include <delegates.h>

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

Public Functions

Name
VectorBindDelegate(MsgFlags flags, T * obj)
Construct a vector bound delegate for the given module.
virtual void process(std::shared_ptr< BaseMessage > msg, std::string , DelegateTypes & dest) override
Adds the message to the bound vector.

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 ,
typename R >
class allpix::VectorBindDelegate;

Delegate for binding multiple message to a vector.

Public Functions Documentation

function VectorBindDelegate

inline VectorBindDelegate(
    MsgFlags flags,
    T * obj
)

Construct a vector bound delegate for the given module.

Parameters:

function process

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

Adds the message to the bound vector.

Parameters:

  • msg Message to process
  • dest Destination of the message

Reimplements: allpix::BaseDelegate::process


Updated on 2024-12-13 at 08:31:37 +0000