dune-fem  2.4.1-rc
voidfilter.hh
Go to the documentation of this file.
1 #ifndef DUNE_FEM_GRIDPART_FILTER_VOIDFILTER_HH
2 #define DUNE_FEM_GRIDPART_FILTER_VOIDFILTER_HH
3 
4 namespace Dune
5 {
6 
7  namespace Fem
8  {
9 
10  // VoidFilter
11  // ------------
12 
13  template< class GridPart >
14  class VoidFilter
15  {
16  public:
18 
19  typedef GridPart GridPartType;
20 
21  template < int cd >
22  struct Codim
23  {
24  typedef typename GridPartType::template Codim< cd >::EntityType EntityType;
25  };
26 
28 
29  template< class Entity >
30  static bool contains ( const Entity & entity )
31  {
32  return true;
33  }
34 
35  template< int cd >
36  static bool contains ( const typename Codim< cd >::EntityType & entity )
37  {
38  return true;
39  }
40 
41  template < class IntersectionIteratorType >
42  static bool intersectionBoundary( const IntersectionIteratorType & it )
43  {
44  return true;
45  }
46 
47  template < class IntersectionIteratorType >
48  static int intersectionBoundaryId(const IntersectionIteratorType & it)
49  {
50  return 1;
51  }
52 
53  template <class IntersectionIteratorType>
54  static bool intersectionNeighbor( const IntersectionIteratorType & it )
55  {
56  return true;
57  }
58 
59  template< class Intersection >
60  static bool interiorIntersection( const Intersection & intersection )
61  {
62  return true;
63  }
64 
65  }; // end RadialFilter
66 
67  } // namespace Fem
68 
69 } // namespace Dune
70 
71 #endif // #ifndef DUNE_FEM_GRIDPART_FILTER_VOIDFILTER_HH
Definition: voidfilter.hh:14
static bool contains(const Entity &entity)
Definition: voidfilter.hh:30
GridPartType::template Codim< cd >::EntityType EntityType
Definition: voidfilter.hh:24
static bool intersectionNeighbor(const IntersectionIteratorType &it)
Definition: voidfilter.hh:54
static int intersectionBoundaryId(const IntersectionIteratorType &it)
Definition: voidfilter.hh:48
static bool interiorIntersection(const Intersection &intersection)
Definition: voidfilter.hh:60
Definition: coordinate.hh:4
static bool intersectionBoundary(const IntersectionIteratorType &it)
Definition: voidfilter.hh:42
VoidFilter FilterType
Definition: voidfilter.hh:17
Definition: voidfilter.hh:22
static bool contains(const typename Codim< cd >::EntityType &entity)
Definition: voidfilter.hh:36
Codim< 0 >::EntityType EntityType
Definition: voidfilter.hh:27
GridPart GridPartType
Definition: voidfilter.hh:19