Geant4-11
Public Types | Public Member Functions | Private Attributes
PTL::JoinFunction< void, JoinArg > Struct Template Reference

#include <JoinFunction.hh>

Public Types

using Type = std::function< void(JoinArg)>
 

Public Member Functions

template<typename Func >
 JoinFunction (Func &&func)
 
template<typename... Args>
void operator() (Args &&... args)
 

Private Attributes

Type m_func = [](JoinArg) {}
 

Detailed Description

template<typename JoinArg>
struct PTL::JoinFunction< void, JoinArg >

Definition at line 71 of file JoinFunction.hh.

Member Typedef Documentation

◆ Type

template<typename JoinArg >
using PTL::JoinFunction< void, JoinArg >::Type = std::function<void(JoinArg)>

Definition at line 74 of file JoinFunction.hh.

Constructor & Destructor Documentation

◆ JoinFunction()

template<typename JoinArg >
template<typename Func >
PTL::JoinFunction< void, JoinArg >::JoinFunction ( Func &&  func)
inline

Definition at line 80 of file JoinFunction.hh.

81 : m_func(std::forward<Func>(func))
82 {}

Member Function Documentation

◆ operator()()

template<typename JoinArg >
template<typename... Args>
void PTL::JoinFunction< void, JoinArg >::operator() ( Args &&...  args)
inline

Definition at line 85 of file JoinFunction.hh.

86 {
87 m_func(std::forward<Args>(args)...);
88 }
static char ** args
Definition: G4Xt.cc:51

References args, and PTL::JoinFunction< JoinT, JoinArg >::m_func.

Field Documentation

◆ m_func

template<typename JoinArg >
Type PTL::JoinFunction< void, JoinArg >::m_func = [](JoinArg) {}
private

Definition at line 91 of file JoinFunction.hh.


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