IPPL (Independent Parallel Particle Layer)
IPPL
Loading...
Searching...
No Matches
ippl::detail::FunctorWrapper< REDUCE, Functor, Policy, std::tuple< T... >, Acc... > Struct Template Reference

#include <ParallelDispatch.h>

Inheritance diagram for ippl::detail::FunctorWrapper< REDUCE, Functor, Policy, std::tuple< T... >, Acc... >:
Collaboration diagram for ippl::detail::FunctorWrapper< REDUCE, Functor, Policy, std::tuple< T... >, Acc... >:

Public Member Functions

KOKKOS_INLINE_FUNCTION void operator() (T... x, Acc &... res) const

Public Attributes

Functor f

Detailed Description

template<typename Functor, typename Policy, typename... T, typename... Acc>
struct ippl::detail::FunctorWrapper< REDUCE, Functor, Policy, std::tuple< T... >, Acc... >

Wrapper struct for reduction kernels Source: https://stackoverflow.com/questions/50713214/familiar-template-syntax-for-generic-lambdas

Template Parameters
Functorfunctor type
Policyrange policy type
T...index types
Accaccumulator data type

Definition at line 141 of file ParallelDispatch.h.

Member Function Documentation

◆ operator()()

template<typename Functor, typename Policy, typename... T, typename... Acc>
KOKKOS_INLINE_FUNCTION void ippl::detail::FunctorWrapper< REDUCE, Functor, Policy, std::tuple< T... >, Acc... >::operator() ( T... x,
Acc &... res ) const
inline

Inline operator forwarding to a specialized instantiation of the functor's own operator()

Parameters
x...the indices
resthe accumulator variable
Returns
The functor's return value

Definition at line 151 of file ParallelDispatch.h.

References f.

Member Data Documentation

◆ f

template<typename Functor, typename Policy, typename... T, typename... Acc>
Functor ippl::detail::FunctorWrapper< REDUCE, Functor, Policy, std::tuple< T... >, Acc... >::f

Definition at line 142 of file ParallelDispatch.h.

Referenced by operator()().


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