Reference documentation for deal.II version 9.0.0
dof_iterator_selector.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 1998 - 2018 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE at
12 // the top level of the deal.II distribution.
13 //
14 // ---------------------------------------------------------------------
15 
16 #ifndef dealii_dof_iterators_h
17 #define dealii_dof_iterators_h
18 
19 #include <deal.II/base/config.h>
20 
21 
22 DEAL_II_NAMESPACE_OPEN
23 
24 template <int, int, int> class DoFInvalidAccessor;
25 
26 template <int structdim, typename DoFHandlerType, bool lda> class DoFAccessor;
27 template <typename DoFHandlerType, bool lda> class DoFCellAccessor;
28 
29 template <typename Accessor> class TriaRawIterator;
30 template <typename Accessor> class TriaIterator;
31 template <typename Accessor> class TriaActiveIterator;
32 
33 namespace internal
34 {
35  namespace DoFHandlerImplementation
36  {
37  template <typename DoFHandlerType, bool lda=false>
38  struct Iterators;
39 
40 
53  template <template <int, int> class DoFHandlerType, int spacedim, bool lda>
54  struct Iterators<DoFHandlerType<1, spacedim>, lda>
55  {
56  typedef DoFHandlerType<1,spacedim> DoFHandler_type;
57  typedef ::DoFCellAccessor<DoFHandler_type, lda> CellAccessor;
58  typedef ::DoFAccessor<0,DoFHandler_type, lda> FaceAccessor;
59 
63 
67 
71 
75 
79  };
80 
81 
82 
83 
96  template <template <int, int> class DoFHandlerType, int spacedim, bool lda>
97  struct Iterators<DoFHandlerType<2, spacedim>, lda>
98  {
99  typedef DoFHandlerType<2,spacedim> DoFHandler_type;
100  typedef ::DoFCellAccessor<DoFHandler_type, lda> CellAccessor;
101  typedef ::DoFAccessor<1, DoFHandler_type, lda> FaceAccessor;
102 
106 
110 
114 
118 
122  };
123 
124 
125 
126 
139  template <template <int, int> class DoFHandlerType, int spacedim, bool lda>
140  struct Iterators<DoFHandlerType<3, spacedim>, lda>
141  {
142  typedef DoFHandlerType<3, spacedim> DoFHandler_type;
143  typedef ::DoFCellAccessor<DoFHandler_type, lda> CellAccessor;
144  typedef ::DoFAccessor<2, DoFHandler_type, lda> FaceAccessor;
145 
149 
153 
157 
159  typedef hex_iterator cell_iterator;
161 
165  };
166  }
167 }
168 
169 DEAL_II_NAMESPACE_CLOSE
170 
171 #endif // dealii_dof_iterator_selector_h