$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
site_set/props.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_TRAIT_SITE_SET_PROPS_HH
28 # define MLN_TRAIT_SITE_SET_PROPS_HH
29 
38 # include <string>
39 # include <mln/trait/undef.hh>
40 
41 
84 namespace mln
85 {
86 
87  namespace trait
88  {
89 
90  namespace site_set
91  {
92 
93 
98  struct nsites
99  {
104  struct any { protected: any() {} };
105 
112  struct unknown : any { std::string name() const { return "nsites::unknown"; } };
113 
120  struct known : any { std::string name() const { return "nsites::known"; } };
121  };
122 
123 
128  struct bbox
129  {
134  struct any { protected: any() {} };
135 
144  struct unknown : any { std::string name() const { return "bbox::unknown"; } };
145 
155  struct known : any { protected: known() {} };
156 
162  struct lazy : known { std::string name() const { return "bbox::lazy"; } };
163 
169  struct straight : known { std::string name() const { return "bbox::straight"; } };
170  };
171 
172 
177  struct contents
178  {
183  struct any { protected: any() {} };
184  struct fixed : any { std::string name() const { return "contents::fixed"; } };
185  struct dynamic : any { protected: dynamic() {} };
186  struct growing : dynamic { std::string name() const { return "contents::growing"; } };
187  struct free : dynamic { std::string name() const { return "contents::free"; } };
188  };
189 
195  struct arity
196  {
201  struct any { protected: any() {} };
202  struct unique : any { std::string name() const { return "arity::unique"; } };
203  struct multiple : any { std::string name() const { return "arity::multiple"; } };
204  };
205 
206 
207  // FIXME: support = psite::support
208 
209 
210  } // end of namespace mln::trait::site_set
211 
212  } // end of namespace mln::trait
213 
214 
215 } // end of namespace mln
216 
217 
218 #endif // ! MLN_TRAIT_SITE_SET_PROPS_HH