libjmmcg  build_2783
A C++ library containing an eclectic mix of useful, advanced components.
jmmcg::ppd::private_::alg_wk_wrap::accumulator_work_type< BinOp, Acc > Struct Template Reference

Assist with implementing the parallel versions of the standard algorithms. More...

#include <parallel_algorithms.hpp>

Public Types

typedef Acc result_type
 
typedef BinOp operation_type
 

Public Member Functions

constexpr accumulator_work_type (operation_type const &p, result_type &&i) noexcept(true) FORCE_INLINE
 
constexpr void process (result_type &) noexcept(true) FORCE_INLINE
 
constexpr bool __fastcall operator< (accumulator_work_type const &) const noexcept(true) FORCE_INLINE
 

Static Public Member Functions

template<class T >
static void FORCE_INLINE resize_output (T const &) noexcept(true)
 

Public Attributes

const operation_type binop
 
const result_type init
 

Static Public Attributes

static constexpr ppd::generic_traits::memory_access_modes memory_access_mode =result_type::memory_access_mode
 

Detailed Description

template<typename BinOp, typename Acc>
struct jmmcg::ppd::private_::alg_wk_wrap::accumulator_work_type< BinOp, Acc >

Assist with implementing the parallel versions of the standard algorithms.

See also
accumulate_reduce

Definition at line 310 of file parallel_algorithms.hpp.

Member Typedef Documentation

◆ operation_type

template<typename BinOp , typename Acc >
typedef BinOp jmmcg::ppd::private_::alg_wk_wrap::accumulator_work_type< BinOp, Acc >::operation_type

Definition at line 312 of file parallel_algorithms.hpp.

◆ result_type

template<typename BinOp , typename Acc >
typedef Acc jmmcg::ppd::private_::alg_wk_wrap::accumulator_work_type< BinOp, Acc >::result_type

Definition at line 311 of file parallel_algorithms.hpp.

Constructor & Destructor Documentation

◆ accumulator_work_type()

template<typename BinOp , typename Acc >
constexpr jmmcg::ppd::private_::alg_wk_wrap::accumulator_work_type< BinOp, Acc >::accumulator_work_type ( operation_type const &  p,
result_type &&  i 
)
inlineconstexprnoexcept

Definition at line 322 of file parallel_algorithms.hpp.

Member Function Documentation

◆ operator<()

template<typename BinOp , typename Acc >
constexpr bool __fastcall jmmcg::ppd::private_::alg_wk_wrap::accumulator_work_type< BinOp, Acc >::operator< ( accumulator_work_type< BinOp, Acc > const &  ) const
inlineconstexprnoexcept

Definition at line 329 of file parallel_algorithms.hpp.

◆ process()

template<typename BinOp , typename Acc >
constexpr void jmmcg::ppd::private_::alg_wk_wrap::accumulator_work_type< BinOp, Acc >::process ( result_type )
inlineconstexprnoexcept

Definition at line 326 of file parallel_algorithms.hpp.

◆ resize_output()

template<typename BinOp , typename Acc >
template<class T >
static void FORCE_INLINE jmmcg::ppd::private_::alg_wk_wrap::accumulator_work_type< BinOp, Acc >::resize_output ( T const &  )
inlinestaticnoexcept

Definition at line 334 of file parallel_algorithms.hpp.

Member Data Documentation

◆ binop

template<typename BinOp , typename Acc >
const operation_type jmmcg::ppd::private_::alg_wk_wrap::accumulator_work_type< BinOp, Acc >::binop

Definition at line 319 of file parallel_algorithms.hpp.

◆ init

template<typename BinOp , typename Acc >
const result_type jmmcg::ppd::private_::alg_wk_wrap::accumulator_work_type< BinOp, Acc >::init

Definition at line 320 of file parallel_algorithms.hpp.

◆ memory_access_mode

template<typename BinOp , typename Acc >
constexpr ppd::generic_traits::memory_access_modes jmmcg::ppd::private_::alg_wk_wrap::accumulator_work_type< BinOp, Acc >::memory_access_mode =result_type::memory_access_mode
staticconstexpr

To assist in allowing compile-time computation of the algorithmic order of the threading model.

Definition at line 317 of file parallel_algorithms.hpp.


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