dune-fem  2.4.1-rc
compatibility.hh
Go to the documentation of this file.
1 #ifndef DUNE_FEM_MISC_COMPATIBILITY_HH
2 #define DUNE_FEM_MISC_COMPATIBILITY_HH
3 
4 #include <utility>
5 
6 // #include <dune/common/deprecated.hh>
7 
8 #include <dune/grid/common/entity.hh>
9 #include <dune/grid/common/entitypointer.hh>
10 
11 namespace Dune
12 {
13 
14  namespace Fem
15  {
16 
17  // make_entity
18  // -----------
19 
20  template< class Grid, class Implementation >
21  // DUNE_DEPRECATED_MSG("Still using compatiblity method make_entity()")
22  typename Dune::EntityPointer< Grid, Implementation >::Entity
23  make_entity ( const Dune::EntityPointer< Grid, Implementation > &entityPointer )
24  {
25  return *entityPointer;
26  }
27 
28  template< int codim, int dim, class Grid, template< int, int, class > class Implementation >
29  // DUNE_DEPRECATED_MSG("Still using compatiblity method make_entity()")
30  typename Dune::Entity< codim, dim, Grid, Implementation >
31  make_entity ( Dune::Entity< codim, dim, Grid, Implementation > entity )
32  {
33  return std::move( entity );
34  }
35 
36  } // namespace Fem
37 
38 } // end namespace Dune
39 
40 #endif // #ifndef DUNE_FEM_MISC_COMPATIBILITY_HH
Dune::EntityPointer< Grid, Implementation >::Entity make_entity(const Dune::EntityPointer< Grid, Implementation > &entityPointer)
Definition: compatibility.hh:23
Definition: coordinate.hh:4
void move(ArrayInterface< T > &array, const unsigned int oldOffset, const unsigned int newOffset, const unsigned int length)
Definition: array_inline.hh:38