$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
adj_lower_higher_face_iter.hh
1 // Copyright (C) 2008, 2009, 2012 EPITA Research and Development
2 // Laboratory (LRDE)
3 //
4 // This file is part of Olena.
5 //
6 // Olena is free software: you can redistribute it and/or modify it under
7 // the terms of the GNU General Public License as published by the Free
8 // Software Foundation, version 2 of the License.
9 //
10 // Olena is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with Olena. If not, see <http://www.gnu.org/licenses/>.
17 //
18 // As a special exception, you may use this file as part of a free
19 // software project without restriction. Specifically, if other files
20 // instantiate templates or use macros or inline functions from this
21 // file, or you compile this file and link it with other files to produce
22 // an executable, this file does not by itself cause the resulting
23 // executable to be covered by the GNU General Public License. This
24 // exception does not however invalidate any other reasons why the
25 // executable file might be covered by the GNU General Public License.
26 
27 #ifndef MLN_TOPO_ADJ_LOWER_HIGHER_FACE_ITER_HH
28 # define MLN_TOPO_ADJ_LOWER_HIGHER_FACE_ITER_HH
29 
35 
36 # include <mln/topo/internal/complex_relative_iterator_sequence.hh>
37 # include <mln/topo/adj_lower_face_iter.hh>
38 # include <mln/topo/adj_higher_face_iter.hh>
39 
40 
41 namespace mln
42 {
43 
44  namespace topo
45  {
46 
47  // Forward declaration.
48  template <unsigned D> class complex;
49  template <unsigned D> class adj_lower_face_fwd_iter;
50  template <unsigned D> class adj_lower_face_bkd_iter;
51  template <unsigned D> class adj_higher_face_fwd_iter;
52  template <unsigned D> class adj_higher_face_bkd_iter;
53 
54  namespace internal
55  {
56 
57  template <typename I1, typename I2, typename E>
58  class complex_relative_iterator_sequence;
59 
60  } // end of namespace mln::topo::internal
61 
62 
63  /*------------------------------------------.
64  | topo::adj_lower_higher_face_fwd_iter<D>. |
65  `------------------------------------------*/
66 
74  template <unsigned D>
76  : public internal::complex_relative_iterator_sequence<adj_lower_face_fwd_iter<D>,
77  adj_higher_face_fwd_iter<D>,
78  adj_lower_higher_face_fwd_iter<D> >
79  {
84  iter2_,
85  self_ > super_;
86 
87  public:
91  template <typename Fref>
92  adj_lower_higher_face_fwd_iter(const Fref& f_ref);
94  };
95 
96 
97  /*------------------------------------------.
98  | topo::adj_lower_higher_face_bkd_iter<D>. |
99  `------------------------------------------*/
100 
108  template <unsigned D>
110  : public internal::complex_relative_iterator_sequence<adj_higher_face_bkd_iter<D>,
111  adj_lower_face_bkd_iter<D>,
112  adj_lower_higher_face_bkd_iter<D> >
113  {
118  iter2_,
119  self_ > super_;
120 
121  public:
125  template <typename Fref>
126  adj_lower_higher_face_bkd_iter(const Fref& f_ref);
128  };
129 
130 
131 
132 # ifndef MLN_INCLUDE_ONLY
133 
134  /*------------------------------------------.
135  | topo::adj_lower_higher_face_fwd_iter<D>. |
136  `------------------------------------------*/
137 
138  template <unsigned D>
139  inline
141  {
142  }
143 
144  template <unsigned D>
145  template <typename Fref>
146  inline
148  : super_(f_ref)
149  {
150  }
151 
152 
153  /*------------------------------------------.
154  | topo::adj_lower_higher_face_bkd_iter<D>. |
155  `------------------------------------------*/
156 
157  template <unsigned D>
158  inline
160  {
161  }
162 
163  template <unsigned D>
164  template <typename Fref>
165  inline
167  : super_(f_ref)
168  {
169  }
170 
171 # endif // ! MLN_INCLUDE_ONLY
172 
173  } // end of namespace mln::topo
174 
175 } // end of namespace mln
176 
177 #endif // ! MLN_TOPO_ADJ_LOWER_HIGHER_FACE_ITER_HH