DynExp
Highly flexible laboratory automation for dynamically changing experiments.
DynExp::DefaultEvent< ReceiverType, ArgTupleType >::EventFuncTraits< Indices > Struct Template Reference

Helper struct to allow accessing elements within ArgTupleType. More...

Public Types

using EventFuncPtrType = void(ReceiverType::*)(ModuleInstance *, std::tuple_element_t< Indices, ArgTupleType >...) const
 Signature of an event function. Pointer to ModuleInstance to be passed as parameter instead of reference to render function pointers storable in Util::CallableMemberWrapper (with nullptr as default argument) More...
 
using EventFuncType = Util::CallableMemberWrapper< const ReceiverType, EventFuncPtrType >
 Type of a Util::CallableMemberWrapper to store the event. More...
 

Public Member Functions

constexpr EventFuncTraits ()=default
 

Detailed Description

template<typename ReceiverType, typename ArgTupleType>
template<size_t... Indices>
struct DynExp::DefaultEvent< ReceiverType, ArgTupleType >::EventFuncTraits< Indices >

Helper struct to allow accessing elements within ArgTupleType.

Template Parameters
...IndicesIndex sequence [0, number of elements within ArgTupleType).

Definition at line 102 of file Module.h.

Member Typedef Documentation

◆ EventFuncPtrType

template<typename ReceiverType , typename ArgTupleType >
template<size_t... Indices>
using DynExp::DefaultEvent< ReceiverType, ArgTupleType >::EventFuncTraits< Indices >::EventFuncPtrType = void (ReceiverType::*)(ModuleInstance*, std::tuple_element_t<Indices, ArgTupleType>...) const

Signature of an event function. Pointer to ModuleInstance to be passed as parameter instead of reference to render function pointers storable in Util::CallableMemberWrapper (with nullptr as default argument)

Definition at line 111 of file Module.h.

◆ EventFuncType

template<typename ReceiverType , typename ArgTupleType >
template<size_t... Indices>
using DynExp::DefaultEvent< ReceiverType, ArgTupleType >::EventFuncTraits< Indices >::EventFuncType = Util::CallableMemberWrapper<const ReceiverType, EventFuncPtrType>

Type of a Util::CallableMemberWrapper to store the event.

Definition at line 116 of file Module.h.

Constructor & Destructor Documentation

◆ EventFuncTraits()

template<typename ReceiverType , typename ArgTupleType >
template<size_t... Indices>
constexpr DynExp::DefaultEvent< ReceiverType, ArgTupleType >::EventFuncTraits< Indices >::EventFuncTraits ( )
constexprdefault

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