DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CCellEmbedder.h
1 
17 #pragma once
18 
31 #if defined(CCellEmbedder_RECURSES)
32 #error Recursive header files inclusion detected in CCellEmbedder.h
33 #else // defined(CCellEmbedder_RECURSES)
34 
35 #define CCellEmbedder_RECURSES
36 
37 #if !defined CCellEmbedder_h
38 
39 #define CCellEmbedder_h
40 
42 // Inclusions
43 #include <iostream>
44 #include "DGtal/base/Common.h"
45 #include "DGtal/base/CUnaryFunctor.h"
46 #include "DGtal/topology/CCellularGridSpaceND.h"
48 
49 namespace DGtal
50 {
51 
53 // class CCellEmbedder
94 template <typename T>
95 struct CCellEmbedder : CUnaryFunctor<T, typename T::Cell, typename T::RealPoint>
96 {
97  // ----------------------- Concept checks ------------------------------
98 public:
99  typedef typename T::KSpace KSpace;
100  typedef typename T::Cell Cell;
101  typedef typename T::RealPoint RealPoint;
102  typedef typename T::Argument Argument;
103  typedef typename T::Value Value;
104 
110  {
112  }
113 
115  { // operator()
117  }
118  // ------------------------- Private Datas --------------------------------
119 private:
120  T myX; // do not require T to be default constructible.
123 
124  // ------------------------- Internals ------------------------------------
125 private:
126 
127 }; // end of concept CCellEmbedder
128 
129 } // namespace DGtal
130 
131 // //
133 
134 #endif // !defined CCellEmbedder_h
135 
136 #undef CCellEmbedder_RECURSES
137 #endif // else defined(CCellEmbedder_RECURSES)