Reference documentation for deal.II version GIT relicensing-453-g9b4d7b6a5a 2024-04-20 16:00:02+00:00
\(\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\}}\)
No Matches
Public Member Functions | Private Attributes | List of all members
LinearAlgebra::ReadWriteVector< Number >::FunctorTemplate< Functor > Class Template Reference

Public Member Functions

 FunctorTemplate (ReadWriteVector< Number > &parent, const Functor &functor)
virtual void operator() (const size_type begin, const size_type end)

Private Attributes

const Functor & functor

Detailed Description

template<typename Number>
template<typename Functor>
class LinearAlgebra::ReadWriteVector< Number >::FunctorTemplate< Functor >

This class provides a wrapper around a Functor which acts on single elements of the vector. This is necessary to use tbb::parallel_for which requires a TBBForFunctor.

Definition at line 837 of file read_write_vector.h.

Constructor & Destructor Documentation

◆ FunctorTemplate()

template<typename Number >
template<typename Functor >
LinearAlgebra::ReadWriteVector< Number >::FunctorTemplate< Functor >::FunctorTemplate ( ReadWriteVector< Number > &  parent,
const Functor &  functor 

Constructor. Take a functor and store a copy of it.

Member Function Documentation

◆ operator()()

template<typename Number >
template<typename Functor >
virtual void LinearAlgebra::ReadWriteVector< Number >::FunctorTemplate< Functor >::operator() ( const size_type  begin,
const size_type  end 

Evaluate the element with the stored copy of the functor.

Member Data Documentation

◆ parent

template<typename Number >
template<typename Functor >
ReadWriteVector& LinearAlgebra::ReadWriteVector< Number >::FunctorTemplate< Functor >::parent

Alias to the ReadWriteVector object that owns the FunctorTemplate.

Definition at line 855 of file read_write_vector.h.

◆ functor

template<typename Number >
template<typename Functor >
const Functor& LinearAlgebra::ReadWriteVector< Number >::FunctorTemplate< Functor >::functor

Copy of the functor.

Definition at line 860 of file read_write_vector.h.

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