dune-grid-glue  2.3.0
extractorpredicate.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 // vi: set et ts=4 sw=2 sts=2:
3 /*
4  * Filename: extractorpredicate.hh
5  * Version: 1.0
6  * Created on: Mar 10, 2009
7  * Author: Gerrit Buse
8  * ---------------------------------
9  * Project: dune-grid-glue
10  * Description: simple uniform descriptor for surface or mesh parts
11  *
12  */
18 #ifndef DUNE_GRIDGLUE_EXTRACTORS_EXTRACTORPREDICATES_HH
19 #define DUNE_GRIDGLUE_EXTRACTORS_EXTRACTORPREDICATES_HH
20 
21 namespace Dune {
22 
23  namespace GridGlue {
24 
25 
29 template<typename GV, int codim>
31 {
32 public:
33 
38  virtual bool contains(const typename GV::Traits::template Codim<0>::EntityPointer& element, unsigned int subentity) const = 0;
39 
41  virtual ~ExtractorPredicate() {}
42 };
43 
44 } // namespace GridGlue
45 
46 } // namespace Dune
47 
48 #endif // DUNE_GRIDGLUE_EXTRACTORS_EXTRACTORPREDICATES_HH
Definition: gridglue.hh:34
virtual ~ExtractorPredicate()
Dummy virtual destructor.
Definition: extractorpredicate.hh:41
Base class for subentity-selecting predicates.
Definition: extractorpredicate.hh:30
virtual bool contains(const typename GV::Traits::template Codim< 0 >::EntityPointer &element, unsigned int subentity) const =0
Return true if a subentity should be extracted.