BEM++  2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
scalar_space.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_scalar_space_hpp
22 #define bempp_scalar_space_hpp
23 
24 #include "../common/common.hpp"
25 
26 #include "space.hpp"
27 
28 #include <boost/scoped_ptr.hpp>
29 
30 namespace Bempp
31 {
32 
35 template <typename BasisFunctionType>
36 class ScalarSpace : public Space<BasisFunctionType>
37 {
39 public:
40  typedef typename Base::CoordinateType CoordinateType;
45 
46  explicit ScalarSpace(const shared_ptr<const Grid>& grid);
48  ScalarSpace(const ScalarSpace& other);
49  virtual ~ScalarSpace();
51  ScalarSpace& operator=(const ScalarSpace& other);
52 
54  basisFunctionValue() const;
55 
57  arma::Mat<CoordinateType>& directions) const;
58 
59 private:
60  struct Impl;
61  boost::scoped_ptr<Impl> m_impl;
62 };
63 
64 } // namespace Bempp
65 
66 #endif
ScalarSpace & operator=(const ScalarSpace &other)
Assignment operator.
Definition: scalar_space.cpp:65
Base class for spaces of scalar-valued functions.
Definition: scalar_space.hpp:36
Function space.
Definition: assembled_potential_operator.hpp:35
virtual const CollectionOfShapesetTransformations & basisFunctionValue() const
Transformation mapping shape functions to basis functions.
Definition: scalar_space.cpp:76
Fiber::ScalarTraits< BasisFunctionType >::RealType CoordinateType
Type used to represent coordinates.
Definition: space.hpp:91
shared_ptr< const Grid > grid() const
Shared pointer to the grid on which the functions from this space are defined.
Definition: space.hpp:183
Collection of shape function transformations.
Definition: collection_of_basis_transformations.hpp:36
virtual void getGlobalDofInterpolationDirections(arma::Mat< CoordinateType > &directions) const
Retrieve the interpolation directions of the global degrees of freedom.
Definition: scalar_space.cpp:82