DGtal  1.5.beta
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)
35 #define Duality_RECURSES
36 
37 #if !defined Duality_h
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>
67 {
68 };
69 
70 template <>
72 {
74 };
75 
76 template <>
78 {
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 is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)
unsigned int Order
Aim: Order is used as template parameter for DEC classes.
Definition: Duality.h:89
Duality
Aim: Duality enumerator tells if templated object lives in primal or dual space. Used as template par...
Definition: Duality.h:60
@ PRIMAL
Definition: Duality.h:61
@ DUAL
Definition: Duality.h:62
BOOST_STATIC_CONSTANT(Duality, duality=PRIMAL)
BOOST_STATIC_CONSTANT(Duality, duality=DUAL)