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 | Static Private Attributes | List of all members
internal::AlignedVectorMove< T > Class Template Reference

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

Inheritance diagram for internal::AlignedVectorMove< T >:
[legend]

Public Member Functions

 AlignedVectorMove (T *const source_begin, T *const source_end, T *const destination)
 
virtual void apply_to_subrange (const std::size_t begin, const std::size_t end) const override
 

Private Attributes

T *const source_
 
T *const destination_
 

Static Private Attributes

static const std::size_t minimum_parallel_grain_size
 

Additional Inherited Members

- Private Member Functions inherited from parallel::ParallelForInteger
virtual ~ParallelForInteger ()=default
 
void apply_parallel (const std::size_t begin, const std::size_t end, const std::size_t minimum_parallel_grain_size) const
 

Detailed Description

template<typename T>
class internal::AlignedVectorMove< T >

Like AlignedVectorCopy, but use move operations instead of copy operations.

Definition at line 454 of file aligned_vector.h.

Constructor & Destructor Documentation

◆ AlignedVectorMove()

template<typename T >
internal::AlignedVectorMove< T >::AlignedVectorMove ( T *const  source_begin,
T *const  source_end,
T *const  destination 
)
inline

Constructor. Issues a parallel call if there are sufficiently many elements, otherwise works in serial. Moves the data from the half-open interval between source_begin and source_end to array starting at destination (by calling the move constructor with placement new).

The data is moved between the two arrays by invoking the destructor on the source range (preparing for a subsequent call to free).

Definition at line 469 of file aligned_vector.h.

Member Function Documentation

◆ apply_to_subrange()

template<typename T >
virtual void internal::AlignedVectorMove< T >::apply_to_subrange ( const std::size_t  begin,
const std::size_t  end 
) const
inlineoverridevirtual

This method moves elements from the source to the destination given in the constructor on a subrange given by two integers.

Implements parallel::ParallelForInteger.

Definition at line 490 of file aligned_vector.h.

Member Data Documentation

◆ minimum_parallel_grain_size

template<typename T >
const std::size_t internal::AlignedVectorMove< T >::minimum_parallel_grain_size
staticprivate
Initial value:
=
160000 / sizeof(T) + 1

Definition at line 456 of file aligned_vector.h.

◆ source_

template<typename T >
T* const internal::AlignedVectorMove< T >::source_
private

Definition at line 515 of file aligned_vector.h.

◆ destination_

template<typename T >
T* const internal::AlignedVectorMove< T >::destination_
private

Definition at line 516 of file aligned_vector.h.


The documentation for this class was generated from the following file:
LAPACKSupport::T
static const char T
Definition: lapack_support.h:163