DGtal  1.5.beta
CDynamicBidirectionalSegmentComputer.h
1 
17 #pragma once
18 
31 #if defined(CDynamicBidirectionalSegmentComputer_RECURSES)
32 #error Recursive header files inclusion detected in CDynamicBidirectionalSegmentComputer.h
33 #else // defined(CDynamicBidirectionalSegmentComputer_RECURSES)
35 #define CDynamicBidirectionalSegmentComputer_RECURSES
36 
37 #if !defined CDynamicBidirectionalSegmentComputer_h
39 #define CDynamicBidirectionalSegmentComputer_h
40 
42 // Inclusions
43 #include <iostream>
44 #include "DGtal/base/Common.h"
45 #include "DGtal/geometry/curves/CBidirectionalSegmentComputer.h"
46 #include "DGtal/geometry/curves/CDynamicSegmentComputer.h"
47 
49 
50 namespace DGtal
51 {
52  namespace concepts
53  {
55  // class CDynamicBidirectionalSegmentComputer
81  template <typename T>
85  {
86  // ----------------------- Concept checks ------------------------------
87  public:
88  // Methods
90  {
91  concepts::ConceptUtils::sameType( myB, myX.retractFront() );
92  }
93  // ------------------------- Private Datas --------------------------------
94  private:
95  T myX; // only if T is default constructible.
96  bool myB;
97 
98  // ------------------------- Internals ------------------------------------
99  private:
100  }; // end of concept CDynamicBidirectionalSegmentComputer
101  }// namespace concepts
102 } // namespace DGtal
103 
104 // //
106 
107 #endif // !defined CDynamicBidirectionalSegmentComputer_h
108 
109 #undef CDynamicBidirectionalSegmentComputer_RECURSES
110 #endif // else defined(CDynamicBidirectionalSegmentComputer_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 bidirectional segment computer, ie. a model of concepts::CSeg...
Aim: Defines the concept describing a dynamic and bidirectional segment computer, ie....
Aim: Defines the concept describing a dynamic segment computer, ie. a model of CSegment that can ex...