![]() |
deal.II version GIT relicensing-6834-g5b78e6bcdf 2026-10-01 11:20:01+00:00
|
Like AlignedVectorInitialize, but use default-constructed objects as initializers.
| initialize_memory | Sets 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 1024 of file aligned_vector.h.
Public Member Functions | |
| AlignedVectorDefaultInitialize (const std::size_t size, T *const destination) | |
| virtual void | apply_to_subrange (const std::size_t begin, const std::size_t end) const override |
Private Member Functions | |
| void | default_construct_or_assign (const std::size_t begin, const std::size_t end, std::bool_constant< false >) const |
| void | default_construct_or_assign (const std::size_t begin, const std::size_t end, std::bool_constant< true >) const |
| void | apply_parallel (const std::size_t begin, const std::size_t end, const std::size_t minimum_parallel_grain_size) const |
Private Attributes | |
| T * | destination_ |
Static Private Attributes | |
| static const std::size_t | minimum_parallel_grain_size |
|
inline |
Constructor. Issues a parallel call if there are sufficiently many elements, otherwise work in serial.
Definition at line 1035 of file aligned_vector.h.
|
inlineoverridevirtual |
This initializes elements on a subrange given by two integers.
Implements parallel::ParallelForInteger.
Definition at line 1052 of file aligned_vector.h.
|
inlineprivate |
Definition at line 1070 of file aligned_vector.h.
|
inlineprivate |
Definition at line 1080 of file aligned_vector.h.
|
inlineinherited |
This function runs the for loop over the given range [lower,upper), possibly in parallel when end-begin is larger than the minimum parallel grain size. This function is marked const because it any operation that changes the data of a derived class will inherently not be thread-safe when several threads work with the same data simultaneously.
Definition at line 636 of file parallel.h.
|
staticprivate |
Definition at line 1027 of file aligned_vector.h.
|
mutableprivate |
Definition at line 1066 of file aligned_vector.h.