DGtal
1.1.0
src
DGtal
dec
Duality.h
1
17
#pragma once
18
31
#if defined(Duality_RECURSES)
32
#error Recursive header files inclusion detected in Duality.h
33
#else // defined(Duality_RECURSES)
34
35
#define Duality_RECURSES
36
37
#if !defined Duality_h
38
39
#define Duality_h
40
42
// Inclusions
43
#include <iostream>
44
45
#include "DGtal/base/Common.h"
47
48
namespace
DGtal
49
{
50
52
// Duality
59
enum
Duality
60
{
61
PRIMAL
= 0,
62
DUAL
= 1
63
};
64
65
template
<Duality duality_orig>
66
struct
OppositeDuality
67
{
68
};
69
70
template
<>
71
struct
OppositeDuality
<
PRIMAL
>
72
{
73
BOOST_STATIC_CONSTANT
(
Duality
, duality =
DUAL
);
74
};
75
76
template
<>
77
struct
OppositeDuality
<
DUAL
>
78
{
79
BOOST_STATIC_CONSTANT
(
Duality
, duality =
PRIMAL
);
80
};
81
83
// Order
89
typedef
unsigned
int
Order
;
90
97
std::ostream&
98
operator<<
( std::ostream & out,
const
Duality
&
object
);
99
100
101
}
// namespace DGtal
102
103
105
// Includes inline functions.
106
#if !defined(BUILD_INLINE)
107
#include "DGtal/dec/Duality.ih"
108
#endif
109
110
111
// //
113
114
#endif // !defined Duality_h
115
116
#undef Duality_RECURSES
117
#endif // else defined(Duality_RECURSES)
DGtal::OppositeDuality< DUAL >::BOOST_STATIC_CONSTANT
BOOST_STATIC_CONSTANT(Duality, duality=PRIMAL)
DGtal::PRIMAL
@ PRIMAL
Definition:
Duality.h:61
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition:
ClosedIntegerHalfPlane.h:49
DGtal::Order
unsigned int Order
Aim: Order is used as template parameter for DEC classes.
Definition:
Duality.h:89
DGtal::operator<<
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
DGtal::OppositeDuality< PRIMAL >::BOOST_STATIC_CONSTANT
BOOST_STATIC_CONSTANT(Duality, duality=DUAL)
DGtal::OppositeDuality
Definition:
Duality.h:67
DGtal::DUAL
@ DUAL
Definition:
Duality.h:62
DGtal::Duality
Duality
Aim: Duality enumerator tells if templated object lives in primal or dual space. Used as template par...
Definition:
Duality.h:60
Generated on Fri Oct 9 2020 08:57:52 for DGtal by
1.8.20