Milena (Olena)  User documentation 2.0a Id
 All Classes Namespaces Functions Variables Typedefs Enumerator Groups Pages
p_complex_faces_piter.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_CORE_SITE_SET_ATTIC_P_COMPLEX_FACES_PITER_HH
27 # define MLN_CORE_SITE_SET_ATTIC_P_COMPLEX_FACES_PITER_HH
28 
35 
36 # include <mln/core/site_set/p_complex.hh>
37 # include <mln/core/internal/p_complex_piter_base.hh>
38 # include <mln/topo/attic/faces_iter.hh>
39 
40 /* FIXME: p_complex_faces_fwd_piter_ and p_complex_faces_bkd_piter_
41  are really long names: find something shorter. */
42 
43 
44 namespace mln
45 {
46 
47  // Forward declarations.
48  template <unsigned N, unsigned D, typename P> class p_faces;
49 
50  template <unsigned N, unsigned D> class faces_fwd_iter_;
51  template <unsigned N, unsigned D> class faces_bkd_iter_;
52 
53 
54  /*--------------------------------------.
55  | p_complex_faces_fwd_piter_<N, D, P>. |
56  `--------------------------------------*/
57 
60  template <unsigned N, unsigned D, typename P>
61  class p_complex_faces_fwd_piter_
62  : public internal::p_complex_piter_base_< topo::faces_fwd_iter_<N, D>,
63  p_complex<D, P>,
64  P,
65  p_complex_faces_fwd_piter_<N, D, P> >
66  {
67  typedef p_complex_faces_fwd_piter_<N, D, P> self_;
68  typedef internal::p_complex_piter_base_< topo::faces_fwd_iter_<N, D>,
69  p_complex<D, P>,
70  P,
71  self_ > super_;
72 
73  public:
76  p_complex_faces_fwd_piter_();
77  p_complex_faces_fwd_piter_(const p_complex<D, P>& pc);
79  };
80 
81 
82  /*--------------------------------------.
83  | p_complex_faces_bkd_piter_<N, D, P>. |
84  `--------------------------------------*/
85 
88  template <unsigned N, unsigned D, typename P>
89  class p_complex_faces_bkd_piter_
90  /* FIXME: Rename internal::p_complex_piter_base_ to something else,
91  as it is also used for p_faces piters! */
92  : public internal::p_complex_piter_base_< topo::faces_bkd_iter_<N, D>,
93  p_complex<D, P>,
94  P,
95  p_complex_faces_bkd_piter_<N, D, P> >
96  {
97  typedef p_complex_faces_bkd_piter_<N, D, P> self_;
98  typedef internal::p_complex_piter_base_< topo::faces_bkd_iter_<N, D>,
99  p_complex<D, P>,
100  P,
101  self_ > super_;
102 
103  public:
106  p_complex_faces_bkd_piter_();
107  p_complex_faces_bkd_piter_(const p_complex<D, P>& pc);
109  };
110 
111 
112 
113 # ifndef MLN_INCLUDE_ONLY
114 
115  /*--------------------------------------.
116  | p_complex_faces_fwd_piter_<N, D, P>. |
117  `--------------------------------------*/
118 
119  template <unsigned N, unsigned D, typename P>
120  inline
121  p_complex_faces_fwd_piter_<N, D, P>::p_complex_faces_fwd_piter_()
122  {
123  }
124 
125  template <unsigned N, unsigned D, typename P>
126  inline
127  p_complex_faces_fwd_piter_<N, D, P>::p_complex_faces_fwd_piter_(const p_complex<D, P>& pc)
128  : super_(pc)
129  {
130  }
131 
132 
133  /*--------------------------------------.
134  | p_complex_faces_bkd_piter_<N, D, P>. |
135  `--------------------------------------*/
136 
137  template <unsigned N, unsigned D, typename P>
138  inline
139  p_complex_faces_bkd_piter_<N, D, P>::p_complex_faces_bkd_piter_()
140  {
141  }
142 
143  template <unsigned N, unsigned D, typename P>
144  inline
145  p_complex_faces_bkd_piter_<N, D, P>::p_complex_faces_bkd_piter_(const p_complex<D, P>& pc)
146  : super_(pc)
147  {
148  }
149 
150 # endif // ! MLN_INCLUDE_ONLY
151 
152 } // end of mln
153 
154 #endif // ! MLN_CORE_SITE_SET_ATTIC_P_COMPLEX_FACES_PITER_HH