Reference documentation for deal.II version 9.2.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Public Member Functions | Private Attributes | List of all members
WorkStream::internal::Implementation2::Copier< Iterator, ScratchData, CopyData > Class Template Reference

#include <deal.II/base/work_stream.h>

Inheritance diagram for WorkStream::internal::Implementation2::Copier< Iterator, ScratchData, CopyData >:
[legend]

Public Member Functions

 Copier (const std::function< void(const CopyData &)> &copier)
 
void * operator() (void *item) override
 

Private Attributes

const std::function< void(const CopyData &)> copier
 

Detailed Description

template<typename Iterator, typename ScratchData, typename CopyData>
class WorkStream::internal::Implementation2::Copier< Iterator, ScratchData, CopyData >

A class that manages calling the copier function. Note that it is, in the TBB notation, a filter that runs sequentially, ensuring that all items are copied in the same order in which they are created.

Definition at line 608 of file work_stream.h.

Constructor & Destructor Documentation

◆ Copier()

template<typename Iterator , typename ScratchData , typename CopyData >
WorkStream::internal::Implementation2::Copier< Iterator, ScratchData, CopyData >::Copier ( const std::function< void(const CopyData &)> &  copier)
inline

Constructor. Takes a reference to the object on which we will operate as well as a pointer to the function that will do the copying from the additional data object to the global matrix or similar.

Definition at line 617 of file work_stream.h.

Member Function Documentation

◆ operator()()

template<typename Iterator , typename ScratchData , typename CopyData >
void* WorkStream::internal::Implementation2::Copier< Iterator, ScratchData, CopyData >::operator() ( void *  item)
inlineoverride

Work on a single item.

Definition at line 627 of file work_stream.h.

Member Data Documentation

◆ copier

template<typename Iterator , typename ScratchData , typename CopyData >
const std::function<void(const CopyData &)> WorkStream::internal::Implementation2::Copier< Iterator, ScratchData, CopyData >::copier
private

Pointer to the function that does the copying of data.

Definition at line 671 of file work_stream.h.


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