Reference documentation for deal.II version Git d902c8c1aa 2019-12-15 00:36:45 -0500
Public Member Functions | List of all members
internal::AlignedVectorSet< T, initialize_memory > Class Template Reference

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

Inheritance diagram for internal::AlignedVectorSet< T, initialize_memory >:

Public Member Functions

 AlignedVectorSet (const std::size_t size, const T &element, T *const destination)
virtual void apply_to_subrange (const std::size_t begin, const std::size_t end) const override

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, bool initialize_memory>
class internal::AlignedVectorSet< T, initialize_memory >

Class that issues the set commands for AlignedVector.

Template Parameters
initialize_memorySets whether the set command should initialize memory (with a call to the copy constructor) or rather use the copy assignment operator. A template is necessary to select the appropriate operation since some classes might define only one of those two operations.

Definition at line 520 of file aligned_vector.h.

Constructor & Destructor Documentation

◆ AlignedVectorSet()

template<typename T, bool initialize_memory>
internal::AlignedVectorSet< T, initialize_memory >::AlignedVectorSet ( const std::size_t  size,
const T &  element,
T *const  destination 

Constructor. Issues a parallel call if there are sufficiently many elements, otherwise work in serial.

Definition at line 530 of file aligned_vector.h.

Member Function Documentation

◆ apply_to_subrange()

template<typename T, bool initialize_memory>
virtual void internal::AlignedVectorSet< T, initialize_memory >::apply_to_subrange ( const std::size_t  begin,
const std::size_t  end 
) const

This sets elements on a subrange given by two integers.

Implements parallel::ParallelForInteger.

Definition at line 566 of file aligned_vector.h.

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