BEM++  2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
laplace_3d_potential_operator_base_imp.hpp
1 // Copyright (C) 2011-2012 by the BEM++ Authors
2 //
3 // Permission is hereby granted, free of charge, to any person obtaining a copy
4 // of this software and associated documentation files (the "Software"), to deal
5 // in the Software without restriction, including without limitation the rights
6 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 // copies of the Software, and to permit persons to whom the Software is
8 // furnished to do so, subject to the following conditions:
9 //
10 // The above copyright notice and this permission notice shall be included in
11 // all copies or substantial portions of the Software.
12 //
13 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 // THE SOFTWARE.
20 
21 #ifndef bempp_laplace_3d_potential_operator_base_imp_hpp
22 #define bempp_laplace_3d_potential_operator_base_imp_hpp
23 
24 #include "laplace_3d_potential_operator_base.hpp"
25 
26 namespace Bempp
27 {
28 
29 template <typename Impl, typename BasisFunctionType, typename ResultType>
32  m_impl(new Impl)
33 {
34 }
35 
36 template <typename Impl, typename BasisFunctionType, typename ResultType>
39  const Laplace3dPotentialOperatorBase& other) :
40  m_impl(new Impl(*other.m_impl))
41 {
42 }
43 
44 template <typename Impl, typename BasisFunctionType, typename ResultType>
47 {
48 }
49 
50 template <typename Impl, typename BasisFunctionType, typename ResultType>
54 {
55  if (this != &rhs)
56  m_impl.reset(new Impl(*rhs.m_impl));
57  return *this;
58 }
59 
60 template <typename Impl, typename BasisFunctionType, typename ResultType>
62 CollectionOfKernels&
64 kernels() const
65 {
66  return m_impl->kernels;
67 }
68 
69 template <typename Impl, typename BasisFunctionType, typename ResultType>
71 CollectionOfBasisTransformations&
74 {
75  return m_impl->transformations;
76 }
77 
78 template <typename Impl, typename BasisFunctionType, typename ResultType>
80 KernelTrialIntegral&
82 integral() const
83 {
84  return m_impl->integral;
85 }
86 
87 } // namespace Bempp
88 
89 #endif
virtual const CollectionOfKernels & kernels() const
Return the collection of kernel functions occurring in the integrand of this operator.
Definition: laplace_3d_potential_operator_base_imp.hpp:64
Laplace3dPotentialOperatorBase & operator=(const Laplace3dPotentialOperatorBase &rhs)
Assignment operator.
Definition: laplace_3d_potential_operator_base_imp.hpp:53
Base class for potential operators related to the Laplace equation in 3D.
Definition: laplace_3d_potential_operator_base.hpp:54
virtual const KernelTrialIntegral & integral() const
Return an object representing the integral used to evaluate the potential of a charge distribution...
Definition: laplace_3d_potential_operator_base_imp.hpp:82
virtual ~Laplace3dPotentialOperatorBase()
Destructor.
Definition: laplace_3d_potential_operator_base_imp.hpp:46
virtual const CollectionOfBasisTransformations & trialTransformations() const
Return the collection of transformations of the charge distribution that occur in the weak form of th...
Definition: laplace_3d_potential_operator_base_imp.hpp:73
Laplace3dPotentialOperatorBase()
Constructor.
Definition: laplace_3d_potential_operator_base_imp.hpp:31