DGtal  0.9.2
DigitalSetConverter.h
1 
17 #pragma once
18 
31 #if defined(DigitalSetConverter_RECURSES)
32 #error Recursive header files inclusion detected in DigitalSetConverter.h
33 #else // defined(DigitalSetConverter_RECURSES)
34 
35 #define DigitalSetConverter_RECURSES
36 
37 #if !defined DigitalSetConverter_h
38 
39 #define DigitalSetConverter_h
40 
42 // Inclusions
43 #include <iostream>
44 #include "DGtal/base/Common.h"
45 #include "DGtal/kernel/sets/CDigitalSet.h"
46 #include "DGtal/kernel/sets/DigitalSetBySTLVector.h"
47 #include "DGtal/kernel/sets/DigitalSetBySTLSet.h"
49 
50 namespace DGtal
51 {
52 
54  // class DigitalSetConverter
63  template <typename OutputDigitalSet>
65  {
66  // ----------------------- Standard services ------------------------------
67  public:
68 
78  template<typename InputDigitalSet>
79  static
80  void assign( OutputDigitalSet & output, const InputDigitalSet & input );
81 
89  static
90  void assign( OutputDigitalSet & output, const OutputDigitalSet & input );
91 
92  }; // end of class DigitalSetConverter
93 
94 
95 } // namespace DGtal
96 
97 
99 // Includes inline functions.
100 #include "DGtal/kernel/sets/DigitalSetConverter.ih"
101 
102 // //
104 
105 #endif // !defined DigitalSetConverter_h
106 
107 #undef DigitalSetConverter_RECURSES
108 #endif // else defined(DigitalSetConverter_RECURSES)
static void assign(OutputDigitalSet &output, const InputDigitalSet &input)
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: Utility class to convert between types of sets.