DGtal  0.9.2
CGlobalCurveGeometricEstimator.h
1 
17 #pragma once
18 
31 #if defined(CGlobalGeometricEstimator_RECURSES)
32 #error Recursive header files inclusion detected in CGlobalGeometricEstimator.h
33 #else // defined(CGlobalGeometricEstimator_RECURSES)
34 
35 #define CGlobalGeometricEstimator_RECURSES
36 
37 #if !defined CGlobalGeometricEstimator_h
38 
39 #define CGlobalGeometricEstimator_h
40 
42 // Inclusions
43 #include <iostream>
44 #include "DGtal/base/Common.h"
45 #include "DGtal/base/CQuantity.h"
46 #include <boost/iterator/iterator_archetypes.hpp>
48 
49 namespace DGtal
50 {
51  namespace concepts
52  {
54  // class CGlobalGeometricEstimator
95  template <typename T>
98  {
99 
100  // ----------------------- Concept checks ------------------------------
101  public:
102 
103  typedef typename T::Quantity Quantity;
105 
106  typedef typename T::ConstIterator ConstIterator;
109 
110 
112  {
113  //init method
114  myX.init( myH, myItb, myIte );
115 
116  ConceptUtils::sameType( myQ, myX.eval( ) );
117  }
118 
119  // ------------------------- Private Datas --------------------------------
120  private:
121  T myX;
122 
123  double myH;
124  ConstIterator myItb, myIte;
125  Quantity myQ;
126 
127  // ------------------------- Internals ------------------------------------
128  private:
129 
130  }; // end of concept CGlobalGeometricEstimator
131  }
132 } // namespace DGtal
133 
134 // //
136 
137 #endif // !defined CGlobalGeometricEstimator_h
138 
139 #undef CGlobalGeometricEstimator_RECURSES
140 #endif // else defined(CGlobalGeometricEstimator_RECURSES)
Go to http://www.sgi.com/tech/stl/DefaultConstructible.html.
Definition: Boost.dox:30
BOOST_CONCEPT_ASSERT((concepts::CQuantity< Quantity >))
void sameType(const T &t1, const T &t2)
Aim: defines the concept of quantity in DGtal.
Definition: CQuantity.h:92
DGtal is the top-level namespace which contains all DGtal functions and types.
Go to http://www.boost.org/doc/libs/1_52_0/libs/iterator/doc/ForwardTraversal.html.
Aim: This concept describes an object that can process a range so as to return one estimated quantity...
Go to http://www.boost.org/doc/libs/1_52_0/libs/iterator/doc/ReadableIterator.html.