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