Reference documentation for deal.II version 9.5.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\}}\)
Loading...
Searching...
No Matches
mapping_collection.cc
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 2003 - 2022 by the deal.II authors
4//
5// This file is part of the deal.II library.
6//
7// The deal.II library is free software; you can use it, redistribute
8// it, and/or modify it under the terms of the GNU Lesser General
9// Public License as published by the Free Software Foundation; either
10// version 2.1 of the License, or (at your option) any later version.
11// The full text of the license can be found in the file LICENSE.md at
12// the top level directory of deal.II.
13//
14// ---------------------------------------------------------------------
15
16
18
20
22
24
25
26namespace hp
27{
28 template <int dim, int spacedim>
30 const Mapping<dim, spacedim> &mapping)
31 {
32 this->push_back(mapping);
33 }
34
35
36
37 template <int dim, int spacedim>
40 {
41 for (unsigned int i = 0; i < other.size(); ++i)
42 push_back(other[i]);
43 }
44
45
46
47 template <int dim, int spacedim>
48 void
50 const Mapping<dim, spacedim> &new_mapping)
51 {
53 std::shared_ptr<const Mapping<dim, spacedim>>(new_mapping.clone()));
54 }
55
56} // namespace hp
57
58
59
60// explicit instantiations
61#include "mapping_collection.inst"
62
63
Abstract base class for mapping classes.
Definition mapping.h:317
virtual std::unique_ptr< Mapping< dim, spacedim > > clone() const =0
unsigned int size() const
Definition collection.h:265
void push_back(const Mapping< dim, spacedim > &new_mapping)
MappingCollection()=default
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:472
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:473
Definition hp.h:118