Reference documentation for deal.II version GIT relicensing-224-gc660c0d696 2024-03-28 18:40: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\}}\)
Loading...
Searching...
No Matches
mapping_collection.cc
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2005 - 2022 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Part of the source code is dual licensed under Apache-2.0 WITH
9// LLVM-exception OR LGPL-2.1-or-later. Detailed license information
10// governing the source code and code contributions can be found in
11// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
12//
13// ------------------------------------------------------------------------
14
15
17
19
21
23
24
25namespace hp
26{
27 template <int dim, int spacedim>
29 const Mapping<dim, spacedim> &mapping)
30 {
31 this->push_back(mapping);
32 }
33
34
35
36 template <int dim, int spacedim>
39 {
40 for (unsigned int i = 0; i < other.size(); ++i)
41 push_back(other[i]);
42 }
43
44
45
46 template <int dim, int spacedim>
47 void
49 const Mapping<dim, spacedim> &new_mapping)
50 {
52 std::shared_ptr<const Mapping<dim, spacedim>>(new_mapping.clone()));
53 }
54
55} // namespace hp
56
57
58
59// explicit instantiations
60#include "mapping_collection.inst"
61
62
Abstract base class for mapping classes.
Definition mapping.h:316
virtual std::unique_ptr< Mapping< dim, spacedim > > clone() const =0
unsigned int size() const
Definition collection.h:264
void push_back(const Mapping< dim, spacedim > &new_mapping)
MappingCollection()=default
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:502
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:503
Definition hp.h:117