DGtal 1.4.0
Loading...
Searching...
No Matches
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
48namespace DGtal
49{
50
52// Duality
60{
61 PRIMAL = 0,
62 DUAL = 1
63};
64
65template <Duality duality_orig>
67{
68};
69
70template <>
75
76template <>
81
83// Order
89typedef unsigned int Order;
90
97std::ostream&
98operator<< ( 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.
unsigned int Order
Aim: Order is used as template parameter for DEC classes.
Definition Duality.h:89
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
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)