DGtal  1.3.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)
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  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)
DGtal::concepts::CDynamicSegmentComputer
Aim: Defines the concept describing a dynamic segment computer, ie. a model of CSegment that can ex...
Definition: CDynamicSegmentComputer.h:88
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
DGtal::concepts::ConceptUtils::sameType
void sameType(const T &, const T &)
Definition: ConceptUtils.h:117
DGtal::concepts::CDynamicSegmentComputer::myB
bool myB
Definition: CDynamicSegmentComputer.h:100
DGtal::concepts::CForwardSegmentComputer
Aim: Defines the concept describing a forward segment computer. Like any model of CIncrementalSegment...
Definition: CForwardSegmentComputer.h:101
DGtal::concepts::CDynamicSegmentComputer::myX
T myX
Definition: CDynamicSegmentComputer.h:99
DGtal::concepts::CDynamicSegmentComputer::BOOST_CONCEPT_USAGE
BOOST_CONCEPT_USAGE(CDynamicSegmentComputer)
Definition: CDynamicSegmentComputer.h:93