Reference documentation for deal.II version 8.5.0
tria_iterator_selector.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2003 - 2016 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__tria_iterator_selector_h
17 #define dealii__tria_iterator_selector_h
18 
19 
20 #include <deal.II/base/config.h>
21 
22 DEAL_II_NAMESPACE_OPEN
23 
24 template <int dim, int spacedim> class CellAccessor;
25 template <int, int, int> class InvalidAccessor;
26 template <int, int, int> class TriaAccessor;
27 template <int dim, int spacedim> class TriaAccessor<0, dim, spacedim>;
28 template <typename Accessor> class TriaRawIterator;
29 template <typename Accessor> class TriaIterator;
30 template <typename Accessor> class TriaActiveIterator;
31 
32 namespace internal
33 {
34  namespace Triangulation
35  {
36  template <int dim, int spacedim>
37  struct Iterators;
38 
72  template <int spacedim>
73  struct Iterators<1,spacedim>
74  {
75  typedef TriaRawIterator <::TriaAccessor<0, 1, spacedim> > raw_vertex_iterator;
76  typedef TriaIterator <::TriaAccessor<0, 1, spacedim> > vertex_iterator;
78 
79  typedef TriaRawIterator <::CellAccessor<1,spacedim> > raw_line_iterator;
80  typedef TriaIterator <::CellAccessor<1,spacedim> > line_iterator;
82 
83  typedef TriaRawIterator <::InvalidAccessor<2,1,spacedim> > raw_quad_iterator;
84  typedef TriaIterator <::InvalidAccessor<2,1,spacedim> > quad_iterator;
86 
87  typedef TriaRawIterator <::InvalidAccessor<3,1,spacedim> > raw_hex_iterator;
88  typedef TriaIterator <::InvalidAccessor<3,1,spacedim> > hex_iterator;
90 
91  typedef raw_line_iterator raw_cell_iterator;
92  };
93 
94 
95 
135  template <int spacedim>
136  struct Iterators<2,spacedim>
137  {
138  typedef TriaRawIterator <::TriaAccessor<0, 2, spacedim> > raw_vertex_iterator;
139  typedef TriaIterator <::TriaAccessor<0, 2, spacedim> > vertex_iterator;
141 
142  typedef TriaRawIterator <::TriaAccessor<1, 2, spacedim> > raw_line_iterator;
143  typedef TriaIterator <::TriaAccessor<1, 2, spacedim> > line_iterator;
145 
146  typedef TriaRawIterator <::CellAccessor<2, spacedim> > raw_quad_iterator;
147  typedef TriaIterator <::CellAccessor<2, spacedim> > quad_iterator;
149 
150  typedef TriaRawIterator <::InvalidAccessor<3,2,spacedim> > raw_hex_iterator;
151  typedef TriaIterator <::InvalidAccessor<3,2,spacedim> > hex_iterator;
153 
154  typedef raw_quad_iterator raw_cell_iterator;
155  };
156 
157 
179  template <int spacedim>
180  struct Iterators<3,spacedim>
181  {
182  typedef TriaRawIterator <::TriaAccessor<0, 3, spacedim> > raw_vertex_iterator;
183  typedef TriaIterator <::TriaAccessor<0, 3, spacedim> > vertex_iterator;
185 
186  typedef TriaRawIterator <::TriaAccessor<1, 3, spacedim> > raw_line_iterator;
187  typedef TriaIterator <::TriaAccessor<1, 3, spacedim> > line_iterator;
189 
190  typedef TriaRawIterator <::TriaAccessor<2, 3, spacedim> > raw_quad_iterator;
191  typedef TriaIterator <::TriaAccessor<2, 3, spacedim> > quad_iterator;
193 
194  typedef TriaRawIterator <::CellAccessor<3, spacedim> > raw_hex_iterator;
195  typedef TriaIterator <::CellAccessor<3, spacedim> > hex_iterator;
197 
198  typedef raw_hex_iterator raw_cell_iterator;
199  };
200 
201  }
202 
203 }
204 
205 DEAL_II_NAMESPACE_CLOSE
206 
207 #endif // dealii__tria_iterator_selector_h