$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
p_complex_faces_piter.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_CORE_SITE_SET_ATTIC_P_COMPLEX_FACES_PITER_HH
28 # define MLN_CORE_SITE_SET_ATTIC_P_COMPLEX_FACES_PITER_HH
29 
36 
37 # include <mln/core/site_set/p_complex.hh>
38 # include <mln/core/internal/p_complex_piter_base.hh>
39 # include <mln/topo/attic/faces_iter.hh>
40 
41 /* FIXME: p_complex_faces_fwd_piter_ and p_complex_faces_bkd_piter_
42  are really long names: find something shorter. */
43 
44 
45 namespace mln
46 {
47 
48  // Forward declarations.
49  template <unsigned N, unsigned D, typename P> class p_faces;
50 
51  template <unsigned N, unsigned D> class faces_fwd_iter_;
52  template <unsigned N, unsigned D> class faces_bkd_iter_;
53 
54 
55  /*--------------------------------------.
56  | p_complex_faces_fwd_piter_<N, D, P>. |
57  `--------------------------------------*/
58 
64  template <unsigned N, unsigned D, typename P>
66  : public internal::p_complex_piter_base_< topo::faces_fwd_iter_<N, D>,
67  p_complex<D, P>,
68  P,
69  p_complex_faces_fwd_piter_<N, D, P> >
70  {
74  P,
75  self_ > super_;
76 
77  public:
83  };
84 
85 
86  /*--------------------------------------.
87  | p_complex_faces_bkd_piter_<N, D, P>. |
88  `--------------------------------------*/
89 
95  template <unsigned N, unsigned D, typename P>
97  /* FIXME: Rename internal::p_complex_piter_base_ to something else,
98  as it is also used for p_faces piters! */
99  : public internal::p_complex_piter_base_< topo::faces_bkd_iter_<N, D>,
100  p_complex<D, P>,
101  P,
102  p_complex_faces_bkd_piter_<N, D, P> >
103  {
107  P,
108  self_ > super_;
109 
110  public:
116  };
117 
118 
119 
120 # ifndef MLN_INCLUDE_ONLY
121 
122  /*--------------------------------------.
123  | p_complex_faces_fwd_piter_<N, D, P>. |
124  `--------------------------------------*/
125 
126  template <unsigned N, unsigned D, typename P>
127  inline
129  {
130  }
131 
132  template <unsigned N, unsigned D, typename P>
133  inline
135  : super_(pc)
136  {
137  }
138 
139 
140  /*--------------------------------------.
141  | p_complex_faces_bkd_piter_<N, D, P>. |
142  `--------------------------------------*/
143 
144  template <unsigned N, unsigned D, typename P>
145  inline
147  {
148  }
149 
150  template <unsigned N, unsigned D, typename P>
151  inline
153  : super_(pc)
154  {
155  }
156 
157 # endif // ! MLN_INCLUDE_ONLY
158 
159 } // end of mln
160 
161 #endif // ! MLN_CORE_SITE_SET_ATTIC_P_COMPLEX_FACES_PITER_HH