$extrastylesheet
Olena
User documentation 2.1
An Image Processing Platform
Milena
Getting started
API Reference Manual
All Classes
Examples
Demos
Publications
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
site_sets.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_SETS_HH
28
# define MLN_TRAIT_SITE_SETS_HH
29
35
# include <mln/trait/undef.hh>
36
# include <mln/trait/site_set/props.hh>
37
38
41
# define mln_trait_site_set_nsites(S) typename mln::trait::site_set_< S >::nsites
42
45
# define mln_trait_site_set_bbox(S) typename mln::trait::site_set_< S >::bbox
46
49
# define mln_trait_site_set_contents(S) typename mln::trait::site_set_< S >::contents
50
53
# define mln_trait_site_set_arity(S) typename mln::trait::site_set_< S >::arity
54
55
56
57
namespace
mln
58
{
59
60
namespace
trait
61
{
62
67
template
<
typename
I>
68
struct
undefined_site_set_
69
{
70
typedef
undef
nsites
;
// Known or unknown.
71
typedef
undef
bbox
;
// Unknown, lazy, or straight.
72
typedef
undef
contents
;
// Fixed, growing, or free.
73
typedef
undef
arity
;
// Unique or multiple.
74
};
75
76
87
template
<
typename
I>
88
struct
site_set_
:
undefined_site_set_
<I>
89
{
90
};
91
92
}
// end of namespace mln::trait
93
94
}
// end of namespace mln
95
96
97
# include <mln/trait/site_set/print.hh>
98
99
100
#endif // ! MLN_TRAIT_SITE_SETS_HH
mln
trait
site_sets.hh
Copyright (C) 2012 EPITA Research and Development Laboratory (LRDE)