Logo  0.95.0-final
Finite Element Embedded Library and Language in C++
Feel++ Feel++ on Github Feel++ community
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dualbasis.hpp
Go to the documentation of this file.
1 /* -*- mode: c++; coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; show-trailing-whitespace: t -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2 
3  This file is part of the Feel library
4 
5  Author(s): Christophe Prud'homme <christophe.prudhomme@feelpp.org>
6  Date: 2005-10-10
7 
8  Copyright (C) 2005,2006 EPFL
9 
10  This library is free software; you can redistribute it and/or
11  modify it under the terms of the GNU Lesser General Public
12  License as published by the Free Software Foundation; either
13  version 3.0 of the License, or (at your option) any later version.
14 
15  This library is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  Lesser General Public License for more details.
19 
20  You should have received a copy of the GNU Lesser General Public
21  License along with this library; if not, write to the Free Software
22  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 */
29 #ifndef __DualBasis_H
30 #define __DualBasis_H 1
31 
32 namespace Feel
33 {
44 template<typename Primal>
45 class DualBasis
46 {
47 public:
48 
49 
54 
55  typedef Primal primal_space_type;
56  typedef typename primal_space_type::basis_type basis_type;
57 
59 
62  static const uint16_type nDim = primal_space_type::nDim;
63  static const uint16_type nOrder = primal_space_type::nOrder;
65 
68 
69 
70  DualBasis( primal_space_type const& primal )
71  :
72  M_primal( primal )
73  {}
74  DualBasis( DualBasis const & b )
75  :
76  M_primal( b.M_primal )
77  {}
78  ~DualBasis()
79  {}
80 
82 
86 
87  self_type const& operator=( self_type const& dual )
88  {
89  if ( this != &dual )
90  {
91  M_primal = dual.M_primal;
92  }
93 
94  return *this;
95  }
96 
97  basis_type const& operator()() const
98  {
99  return M_primal.basis();
100  }
101 
103 
107 
108  primal_space_type const& primalSpace() const
109  {
110  return M_primal;
111  }
112 
113  basis_type const& basis() const
114  {
115  return M_primal.basis();
116  }
117 
119 
123 
124 
126 
130 
131 
132 
134 
135 
136 
137 protected:
138 
139 private:
140 
141  primal_space_type M_primal;
142 };
143 } // Feel
144 
145 #endif /* __DualBasis_H */

Generated on Fri Oct 25 2013 14:24:08 for Feel++ by doxygen 1.8.4