DGtal  1.5.beta
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)
35 #define CDynamicSegmentComputer_RECURSES
36 
37 #if !defined CDynamicSegmentComputer_h
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  namespace concepts
51  {
53  // class CDynamicSegmentComputer
87  template <typename T>
89  {
90  // ----------------------- Concept checks ------------------------------
91  public:
92  // Methods
94  {
95  concepts::ConceptUtils::sameType( myB, myX.retractBack() );
96  }
97  // ------------------------- Private Datas --------------------------------
98  private:
99  T myX; // only if T is default constructible.
100  bool myB;
101 
102  // ------------------------- Internals ------------------------------------
103  private:
104 
105  }; // end of concept CDynamicSegmentComputer
106  }
107 } // namespace DGtal
108 
109 // //
111 
112 #endif // !defined CDynamicSegmentComputer_h
113 
114 #undef CDynamicSegmentComputer_RECURSES
115 #endif // else defined(CDynamicSegmentComputer_RECURSES)
void sameType(const T &, const T &)
Definition: ConceptUtils.h:117
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: Defines the concept describing a dynamic segment computer, ie. a model of CSegment that can ex...
Aim: Defines the concept describing a forward segment computer. Like any model of CIncrementalSegment...