BEM++  2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
modified_helmholtz_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_modified_helmholtz_3d_potential_operator_base_imp_hpp
22 #define bempp_modified_helmholtz_3d_potential_operator_base_imp_hpp
23 
24 #include "modified_helmholtz_3d_potential_operator_base.hpp"
25 
26 namespace Bempp
27 {
28 
29 namespace
30 {
31 
32 template <typename Impl>
33 inline typename Impl::KernelType waveNumberImpl(const Impl& impl)
34 {
35  return impl.kernels.functor().waveNumber();
36 }
37 
38 } // namespace
39 
40 template <typename Impl, typename BasisFunctionType>
43  m_impl(new Impl(waveNumber))
44 {
45 }
46 
47 template <typename Impl, typename BasisFunctionType>
50  m_impl(new Impl(*other.m_impl))
51 {
52 }
53 
54 template <typename Impl, typename BasisFunctionType>
57 {
58 }
59 
60 template <typename Impl, typename BasisFunctionType>
64 {
65  if (this != &rhs) {
66  Base::operator=(rhs);
67  m_impl.reset(new Impl(*rhs.m_impl));
68  }
69  return *this;
70 }
71 
72 template <typename Impl, typename BasisFunctionType>
75 waveNumber() const
76 {
77  return waveNumberImpl(*m_impl);
78 }
79 
80 template <typename Impl, typename BasisFunctionType>
82 CollectionOfKernels&
84 kernels() const
85 {
86  return m_impl->kernels;
87 }
88 
89 template <typename Impl, typename BasisFunctionType>
91 CollectionOfShapesetTransformations&
94 {
95  return m_impl->transformations;
96 }
97 
98 template <typename Impl, typename BasisFunctionType>
100 KernelTrialIntegral&
102 integral() const
103 {
104  return m_impl->integral;
105 }
106 
107 } // namespace Bempp
108 
109 #endif
virtual const CollectionOfShapesetTransformations & trialTransformations() const
Return the collection of transformations of the charge distribution that occur in the weak form of th...
Definition: modified_helmholtz_3d_potential_operator_base_imp.hpp:93
ModifiedHelmholtz3dPotentialOperatorBase & operator=(const ModifiedHelmholtz3dPotentialOperatorBase &rhs)
Assignment operator.
Definition: modified_helmholtz_3d_potential_operator_base_imp.hpp:63
Base class for potential operators for the modified Helmholtz equation in 3D.
Definition: modified_helmholtz_3d_potential_operator_base.hpp:44
virtual ~ModifiedHelmholtz3dPotentialOperatorBase()
Destructor.
Definition: modified_helmholtz_3d_potential_operator_base_imp.hpp:56
ModifiedHelmholtz3dPotentialOperatorBase(KernelType waveNumber)
Constructor.
Definition: modified_helmholtz_3d_potential_operator_base_imp.hpp:42
virtual const KernelTrialIntegral & integral() const
Return an object representing the integral used to evaluate the potential of a charge distribution...
Definition: modified_helmholtz_3d_potential_operator_base_imp.hpp:102
virtual const CollectionOfKernels & kernels() const
Return the collection of kernel functions occurring in the integrand of this operator.
Definition: modified_helmholtz_3d_potential_operator_base_imp.hpp:84
KernelType waveNumber() const
Return the wave number set previously in the constructor.
Definition: modified_helmholtz_3d_potential_operator_base_imp.hpp:75
Base::KernelType KernelType
Type of the values of kernel functions.
Definition: modified_helmholtz_3d_potential_operator_base.hpp:60