Reference documentation for deal.II version 8.4.2
dof_iterator_selector.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 1998 - 2015 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 InvalidAccessor;
25 
26 template <int structdim, typename DoFHandlerType, bool lda> class DoFAccessor;
27 template <typename DoFHandlerType, bool lda> class DoFCellAccessor;
28 
29 template <int dim, int spacedim> class FiniteElement;
30 template <typename Accessor> class TriaRawIterator;
31 template <typename Accessor> class TriaIterator;
32 template <typename Accessor> class TriaActiveIterator;
33 template <int dim, int spacedim> class Triangulation;
34 template <int dim, int spacedim> class DoFHandler;
35 
36 
37 namespace internal
38 {
39  namespace DoFHandler
40  {
41  template <typename DoFHandlerType, bool lda=false>
42  struct Iterators;
43 
44 
57  template <template <int, int> class DoFHandlerType, int spacedim, bool lda>
58  struct Iterators<DoFHandlerType<1, spacedim>, lda>
59  {
60  typedef DoFHandlerType<1,spacedim> DoFHandler_type;
61  typedef ::DoFCellAccessor<DoFHandler_type, lda> CellAccessor;
62  typedef ::DoFAccessor<0,DoFHandler_type, lda> FaceAccessor;
63 
67 
71 
75 
76  typedef raw_line_iterator raw_cell_iterator;
77  typedef line_iterator cell_iterator;
78  typedef active_line_iterator active_cell_iterator;
79 
83  };
84 
85 
86 
87 
100  template <template <int, int> class DoFHandlerType, int spacedim, bool lda>
101  struct Iterators<DoFHandlerType<2, spacedim>, lda>
102  {
103  typedef DoFHandlerType<2,spacedim> DoFHandler_type;
104  typedef ::DoFCellAccessor<DoFHandler_type, lda> CellAccessor;
105  typedef ::DoFAccessor<1, DoFHandler_type, lda> FaceAccessor;
106 
110 
114 
118 
119  typedef raw_quad_iterator raw_cell_iterator;
120  typedef quad_iterator cell_iterator;
121  typedef active_quad_iterator active_cell_iterator;
122 
123  typedef raw_line_iterator raw_face_iterator;
124  typedef line_iterator face_iterator;
125  typedef active_line_iterator active_face_iterator;
126  };
127 
128 
129 
130 
143  template <template <int, int> class DoFHandlerType, int spacedim, bool lda>
144  struct Iterators<DoFHandlerType<3, spacedim>, lda>
145  {
146  typedef DoFHandlerType<3, spacedim> DoFHandler_type;
147  typedef ::DoFCellAccessor<DoFHandler_type, lda> CellAccessor;
148  typedef ::DoFAccessor<2, DoFHandler_type, lda> FaceAccessor;
149 
153 
157 
161 
162  typedef raw_hex_iterator raw_cell_iterator;
163  typedef hex_iterator cell_iterator;
164  typedef active_hex_iterator active_cell_iterator;
165 
166  typedef raw_quad_iterator raw_face_iterator;
167  typedef quad_iterator face_iterator;
168  typedef active_quad_iterator active_face_iterator;
169  };
170  }
171 }
172 
173 DEAL_II_NAMESPACE_CLOSE
174 
175 #endif // dealii__dof_iterator_selector_h