DPC++ Runtime
Runtime libraries for oneAPI DPC++
sycl::_V1::detail::ReducerElement< T, BinaryOperation, IsOptional > Class Template Reference

#include <sycl/reduction.hpp>

Public Member Functions

 ReducerElement ()=default
 
 ReducerElement (T Value)
 
template<bool ExplicitIdentity>
 ReducerElement (const ReductionIdentityContainer< T, BinaryOperation, ExplicitIdentity > &IdentityContainer)
 
ReducerElementcombine (BinaryOperation BinOp, const T &OtherValue)
 
ReducerElementcombine (BinaryOperation BinOp, const ReducerElement &Other)
 
constexpr T & operator* () noexcept
 
constexpr const T & operator* () const noexcept
 
constexpr operator bool () const
 

Detailed Description

template<typename T, class BinaryOperation, bool IsOptional>
class sycl::_V1::detail::ReducerElement< T, BinaryOperation, IsOptional >

Definition at line 437 of file reduction.hpp.

Constructor & Destructor Documentation

◆ ReducerElement() [1/3]

template<typename T , class BinaryOperation , bool IsOptional>
sycl::_V1::detail::ReducerElement< T, BinaryOperation, IsOptional >::ReducerElement ( )
default

◆ ReducerElement() [2/3]

template<typename T , class BinaryOperation , bool IsOptional>
sycl::_V1::detail::ReducerElement< T, BinaryOperation, IsOptional >::ReducerElement ( Value)
inline

Definition at line 456 of file reduction.hpp.

◆ ReducerElement() [3/3]

template<typename T , class BinaryOperation , bool IsOptional>
template<bool ExplicitIdentity>
sycl::_V1::detail::ReducerElement< T, BinaryOperation, IsOptional >::ReducerElement ( const ReductionIdentityContainer< T, BinaryOperation, ExplicitIdentity > &  IdentityContainer)
inline

Definition at line 459 of file reduction.hpp.

Member Function Documentation

◆ combine() [1/2]

template<typename T , class BinaryOperation , bool IsOptional>
ReducerElement& sycl::_V1::detail::ReducerElement< T, BinaryOperation, IsOptional >::combine ( BinaryOperation  BinOp,
const ReducerElement< T, BinaryOperation, IsOptional > &  Other 
)
inline

◆ combine() [2/2]

template<typename T , class BinaryOperation , bool IsOptional>
ReducerElement& sycl::_V1::detail::ReducerElement< T, BinaryOperation, IsOptional >::combine ( BinaryOperation  BinOp,
const T &  OtherValue 
)
inline

◆ operator bool()

template<typename T , class BinaryOperation , bool IsOptional>
constexpr sycl::_V1::detail::ReducerElement< T, BinaryOperation, IsOptional >::operator bool ( ) const
inlineexplicitconstexpr

Definition at line 496 of file reduction.hpp.

◆ operator*() [1/2]

template<typename T , class BinaryOperation , bool IsOptional>
constexpr const T& sycl::_V1::detail::ReducerElement< T, BinaryOperation, IsOptional >::operator* ( ) const
inlineconstexprnoexcept

Definition at line 489 of file reduction.hpp.

◆ operator*() [2/2]

template<typename T , class BinaryOperation , bool IsOptional>
constexpr T& sycl::_V1::detail::ReducerElement< T, BinaryOperation, IsOptional >::operator* ( )
inlineconstexprnoexcept

Definition at line 483 of file reduction.hpp.


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