dune-grid-glue 2.5-git
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
21namespace Dune {
22
23 namespace GridGlue {
24
25
29template<typename GV, int codim>
31{
32public:
33 typedef typename GV::Traits::template Codim<0>::Entity Element;
34
39 virtual bool contains(const Element& element, unsigned int subentity) const = 0;
40
43};
44
45} // namespace GridGlue
46
47} // namespace Dune
48
49#endif // DUNE_GRIDGLUE_EXTRACTORS_EXTRACTORPREDICATES_HH
Definition gridglue.hh:30
Base class for subentity-selecting predicates.
Definition extractorpredicate.hh:31
GV::Traits::template Codim< 0 >::Entity Element
Definition extractorpredicate.hh:33
virtual ~ExtractorPredicate()
Dummy virtual destructor.
Definition extractorpredicate.hh:42
virtual bool contains(const Element &element, unsigned int subentity) const =0
Return true if a subentity should be extracted.