Reference documentation for deal.II version 8.1.0
dof_iterator_selector.h
1 // ---------------------------------------------------------------------
2 // @f$Id: dof_iterator_selector.h 30036 2013-07-18 16:55:32Z maier @f$
3 //
4 // Copyright (C) 1998 - 2013 by the deal.II authors
5 //
6 // This file is part of the deal.II library.
7 //
8 // The deal.II library is free software; you can use it, redistribute
9 // it, and/or modify it under the terms of the GNU Lesser General
10 // Public License as published by the Free Software Foundation; either
11 // version 2.1 of the License, or (at your option) any later version.
12 // The full text of the license can be found in the file LICENSE at
13 // the top level of the deal.II distribution.
14 //
15 // ---------------------------------------------------------------------
16 
17 #ifndef __deal2__dof_iterators_h
18 #define __deal2__dof_iterators_h
19 
20 #include <deal.II/base/config.h>
21 
22 
24 
25 template <int, int, int> class InvalidAccessor;
26 
27 template <int structdim, class DH, bool lda> class DoFAccessor;
28 template <class DH, bool lda> class DoFCellAccessor;
29 
30 template <int dim, int spacedim> class FiniteElement;
31 template <typename Accessor> class TriaRawIterator;
32 template <typename Accessor> class TriaIterator;
33 template <typename Accessor> class TriaActiveIterator;
34 template <int dim, int spacedim> class Triangulation;
35 template <int dim, int spacedim> class DoFHandler;
36 
37 
38 namespace internal
39 {
40  namespace DoFHandler
41  {
42  template <class DH, bool lda=false>
43  struct Iterators;
44 
45 
56  template <template <int, int> class DH, int spacedim, bool lda>
57  struct Iterators<DH<1, spacedim>, lda>
58  {
59  typedef DH<1,spacedim> DoFHandler_type;
60  typedef ::DoFCellAccessor<DoFHandler_type, lda> CellAccessor;
61  typedef ::DoFAccessor<0,DoFHandler_type, lda> FaceAccessor;
62 
66 
70 
74 
75  typedef raw_line_iterator raw_cell_iterator;
76  typedef line_iterator cell_iterator;
77  typedef active_line_iterator active_cell_iterator;
78 
82  };
83 
84 
85 
86 
97  template <template <int, int> class DH, int spacedim, bool lda>
98  struct Iterators<DH<2, spacedim>, lda>
99  {
100  typedef DH<2,spacedim> DoFHandler_type;
101  typedef ::DoFCellAccessor<DoFHandler_type, lda> CellAccessor;
102  typedef ::DoFAccessor<1, DoFHandler_type, lda> FaceAccessor;
103 
107 
111 
115 
116  typedef raw_quad_iterator raw_cell_iterator;
117  typedef quad_iterator cell_iterator;
118  typedef active_quad_iterator active_cell_iterator;
119 
120  typedef raw_line_iterator raw_face_iterator;
121  typedef line_iterator face_iterator;
122  typedef active_line_iterator active_face_iterator;
123  };
124 
125 
126 
127 
138  template <template <int, int> class DH, int spacedim, bool lda>
139  struct Iterators<DH<3, spacedim>, lda>
140  {
141  typedef DH<3, spacedim> DoFHandler_type;
142  typedef ::DoFCellAccessor<DoFHandler_type, lda> CellAccessor;
143  typedef ::DoFAccessor<2, DoFHandler_type, lda> FaceAccessor;
144 
148 
152 
156 
157  typedef raw_hex_iterator raw_cell_iterator;
158  typedef hex_iterator cell_iterator;
159  typedef active_hex_iterator active_cell_iterator;
160 
161  typedef raw_quad_iterator raw_face_iterator;
162  typedef quad_iterator face_iterator;
163  typedef active_quad_iterator active_face_iterator;
164  };
165  }
166 }
167 
168 DEAL_II_NAMESPACE_CLOSE
169 
170 #endif // __deal2__dof_iterator_selector_h