DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CBidirectionalSegmentComputer.h
1 
17 #pragma once
18 
31 #if defined(CBidirectionalSegmentComputer_RECURSES)
32 #error Recursive header files inclusion detected in CBidirectionalSegmentComputer.h
33 #else // defined(CBidirectionalSegmentComputer_RECURSES)
34 
35 #define CBidirectionalSegmentComputer_RECURSES
36 
37 #if !defined CBidirectionalSegmentComputer_h
38 
39 #define CBidirectionalSegmentComputer_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 CBidirectionalSegmentComputer
113  template <typename T>
115  {
116  // ----------------------- Concept checks ------------------------------
117  public:
118  // Methods
120  {
121  ConceptUtils::sameType( myB, myX.isExtendableBackward() );
122  ConceptUtils::sameType( myB, myX.extendBackward() );
123  }
124  // ------------------------- Private Datas --------------------------------
125  private:
126  T myX; // only if T is default constructible.
127  bool myB;
128 
129  // ------------------------- Internals ------------------------------------
130  private:
131 
132  }; // end of concept CBidirectionalSegmentComputer
133 
134 } // namespace DGtal
135 
136 // //
138 
139 #endif // !defined CBidirectionalSegmentComputer_h
140 
141 #undef CBidirectionalSegmentComputer_RECURSES
142 #endif // else defined(CBidirectionalSegmentComputer_RECURSES)