DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CDynamicSegmentComputer.h
1 
17 #pragma once
18 
31 #if defined(CDynamicSegmentComputer_RECURSES)
32 #error Recursive header files inclusion detected in CDynamicSegmentComputer.h
33 #else // defined(CDynamicSegmentComputer_RECURSES)
34 
35 #define CDynamicSegmentComputer_RECURSES
36 
37 #if !defined CDynamicSegmentComputer_h
38 
39 #define CDynamicSegmentComputer_h
40 
42 // Inclusions
43 #include <iostream>
44 #include "DGtal/base/Common.h"
45 #include "DGtal/geometry/curves/CForwardSegmentComputer.h"
47 
48 namespace DGtal
49 {
50 
52  // class CDynamicSegmentComputer
102  template <typename T>
104  {
105  // ----------------------- Concept checks ------------------------------
106  public:
107  // Methods
109  {
110  ConceptUtils::sameType( myB, myX.retractForward() );
111  }
112  // ------------------------- Private Datas --------------------------------
113  private:
114  T myX; // only if T is default constructible.
115  bool myB;
116 
117  // ------------------------- Internals ------------------------------------
118  private:
119 
120  }; // end of concept CDynamicSegmentComputer
121 
122 } // namespace DGtal
123 
124 // //
126 
127 #endif // !defined CDynamicSegmentComputer_h
128 
129 #undef CDynamicSegmentComputer_RECURSES
130 #endif // else defined(CDynamicSegmentComputer_RECURSES)