$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
p_faces_piter.hh
1 // Copyright (C) 2008, 2009, 2011, 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_FACES_PITER_HH
28 # define MLN_CORE_SITE_SET_ATTIC_P_FACES_PITER_HH
29 
35 
36 # include <mln/core/site_set/p_faces.hh>
37 # include <mln/core/internal/p_complex_piter_base.hh>
38 # include <mln/topo/attic/faces_iter.hh>
39 
40 
41 namespace mln
42 {
43 
44  // Forward declarations.
45  template <unsigned N, unsigned D, typename P> struct p_faces;
46 
47  template <unsigned N, unsigned D> class faces_fwd_iter_;
48  template <unsigned N, unsigned D> class faces_bkd_iter_;
49 
50 
51  /*------------------------------.
52  | p_faces_fwd_piter_<N, D, P>. |
53  `------------------------------*/
54 
60  template <unsigned N, unsigned D, typename P>
62  : public internal::p_complex_piter_base_< topo::faces_fwd_iter_<N, D>,
63  p_faces<N, D, P>,
64  P,
65  p_faces_fwd_piter_<N, D, P> >
66  {
70  P,
71  self_ > super_;
72 
73  public:
79  };
80 
81 
82  /*------------------------------.
83  | p_faces_bkd_piter_<N, D, P>. |
84  `------------------------------*/
85 
91  template <unsigned N, unsigned D, typename P>
93  /* FIXME: Rename internal::p_complex_piter_base_ to something else,
94  as it is also used for p_faces piters! */
95  : public internal::p_complex_piter_base_< topo::faces_bkd_iter_<N, D>,
96  p_faces<N, D, P>,
97  P,
98  p_faces_bkd_piter_<N, D, P> >
99  {
103  P,
104  self_ > super_;
105 
106  public:
112  };
113 
114 
115 
116 # ifndef MLN_INCLUDE_ONLY
117 
118  /*------------------------------.
119  | p_faces_fwd_piter_<N, D, P>. |
120  `------------------------------*/
121 
122  template <unsigned N, unsigned D, typename P>
123  inline
125  {
126  }
127 
128  template <unsigned N, unsigned D, typename P>
129  inline
130  p_faces_fwd_piter_<N, D, P>::p_faces_fwd_piter_(const p_faces<N, D, P>& pc)
131  : super_(pc)
132  {
133  }
134 
135 
136  /*------------------------------.
137  | p_faces_bkd_piter_<N, D, P>. |
138  `------------------------------*/
139 
140  template <unsigned N, unsigned D, typename P>
141  inline
143  {
144  }
145 
146  template <unsigned N, unsigned D, typename P>
147  inline
148  p_faces_bkd_piter_<N, D, P>::p_faces_bkd_piter_(const p_faces<N, D, P>& pc)
149  : super_(pc)
150  {
151  }
152 
153 # endif // ! MLN_INCLUDE_ONLY
154 
155 } // end of mln
156 
157 #endif // ! MLN_CORE_SITE_SET_ATTIC_P_FACES_PITER_HH