The Gaudi Framework  v37r0 (b608885e)
Gaudi::Functional::details::filter_evtcontext_t< In > Struct Template Reference

#include </builds/gaudi/Gaudi/GaudiFunctional/include/Gaudi/Functional/details.h>

Public Types

using type = std::tuple< In... >
 

Static Public Member Functions

template<typename Algorithm , typename Handles >
static auto apply (const Algorithm &algo, Handles &handles)
 
template<typename Algorithm , typename Handles >
static auto apply (const Algorithm &algo, const EventContext &ctx, Handles &handles)
 

Detailed Description

template<typename... In>
struct Gaudi::Functional::details::filter_evtcontext_t< In >

Definition at line 459 of file details.h.

Member Typedef Documentation

◆ type

template<typename... In>
using Gaudi::Functional::details::filter_evtcontext_t< In >::type = std::tuple<In...>

Definition at line 460 of file details.h.

Member Function Documentation

◆ apply() [1/2]

template<typename... In>
template<typename Algorithm , typename Handles >
static auto Gaudi::Functional::details::filter_evtcontext_t< In >::apply ( const Algorithm algo,
const EventContext ctx,
Handles &  handles 
)
inlinestatic

Definition at line 472 of file details.h.

472  {
473  return std::apply( [&]( const auto&... handle ) { return algo( get( handle, algo, ctx )... ); }, handles );
474  }

◆ apply() [2/2]

template<typename... In>
template<typename Algorithm , typename Handles >
static auto Gaudi::Functional::details::filter_evtcontext_t< In >::apply ( const Algorithm algo,
Handles &  handles 
)
inlinestatic

Definition at line 466 of file details.h.

466  {
467  return std::apply(
468  [&]( const auto&... handle ) { return algo( get( handle, algo, Gaudi::Hive::currentContext() )... ); },
469  handles );
470  }

The documentation for this struct was generated from the following file:
Gaudi::Hive::currentContext
GAUDI_API const EventContext & currentContext()
Definition: ThreadLocalContext.cpp:30
Gaudi::Functional::details::get
auto get(const Handle &handle, const Algo &, const EventContext &) -> decltype(details::deref(handle.get()))
Definition: details.h:440
GaudiPython.Pythonizations.ctx
ctx
Definition: Pythonizations.py:588