DGtal  0.9.3beta
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>
45 
46 namespace DGtal
47 {
48 
50 // Duality
57 enum Duality
58 {
59  PRIMAL = 0,
60  DUAL = 1
61 };
62 
63 template <Duality duality_orig>
65 {
66 };
67 
68 template <>
70 {
71  BOOST_STATIC_CONSTANT( Duality, duality = DUAL );
72 };
73 
74 template <>
76 {
77  BOOST_STATIC_CONSTANT( Duality, duality = PRIMAL );
78 };
79 
81 // Order
87 typedef unsigned int Order;
88 
95 std::ostream&
96 operator<< ( std::ostream & out, const Duality& object );
97 
98 
99 } // namespace DGtal
100 
101 
103 // Includes inline functions.
104 #if !defined(BUILD_INLINE)
105 #include "DGtal/dec/Duality.ih"
106 #endif
107 
108 
109 // //
111 
112 #endif // !defined Duality_h
113 
114 #undef Duality_RECURSES
115 #endif // else defined(Duality_RECURSES)
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
DGtal is the top-level namespace which contains all DGtal functions and types.
unsigned int Order
Aim: Order is used as template parameter for DEC classes.
Definition: Duality.h:87
Duality
Aim: Duality enumerator tells if templated object lives in primal or dual space. Used as template par...
Definition: Duality.h:57