DGtal  1.5.beta
CIncrementalPrimitiveComputer.h
1 
17 #pragma once
18 
31 #if defined(CIncrementalPrimitiveComputer_RECURSES)
32 #error Recursive header files inclusion detected in CIncrementalPrimitiveComputer.h
33 #else // defined(CIncrementalPrimitiveComputer_RECURSES)
35 #define CIncrementalPrimitiveComputer_RECURSES
36 
37 #if !defined CIncrementalPrimitiveComputer_h
39 #define CIncrementalPrimitiveComputer_h
40 
42 // Inclusions
43 #include <iostream>
44 #include "DGtal/base/Common.h"
45 #include "boost/concept_check.hpp"
46 #include "DGtal/base/ConceptUtils.h"
47 #include "DGtal/geometry/surfaces/CPrimitiveComputer.h"
49 
50 // @since 0.8 In DGtal::concepts
51 namespace DGtal {
52  namespace concepts {
53 
55  // class CIncrementalPrimitiveComputer
98  template <typename T>
100  {
101  // ----------------------- Concept checks ------------------------------
102  public:
103  // Inner types
104  typedef typename T::Point Point;
105 
106  // Methods
108  {
111  }
113  {
114  ConceptUtils::sameType( myBool, myX.isExtendable( myPoint ) );
115  }
116  // ------------------------- Private Datas --------------------------------
117  private:
118  T myX; // only if T is default constructible.
120  bool myBool;
121 
122  // ------------------------- Internals ------------------------------------
123  private:
124 
125  }; // end of concept CIncrementalPrimitiveComputer
126 
127 } // namespace concepts
128 } // namespace DGtal
129 
130 // //
132 
133 #endif // !defined CIncrementalPrimitiveComputer_h
134 
135 #undef CIncrementalPrimitiveComputer_RECURSES
136 #endif // else defined(CIncrementalPrimitiveComputer_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 an object that computes some primitive from input points given on...
Aim: Defines the concept describing an object that computes some primitive from input points,...
MyPointD Point
Definition: testClone2.cpp:383