DGtal  1.5.beta
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)
35 #define CGlobalGeometricEstimator_RECURSES
36 
37 #if !defined CGlobalGeometricEstimator_h
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>
97  {
98 
99  // ----------------------- Concept checks ------------------------------
100  public:
101 
102  typedef typename T::Quantity Quantity;
104 
105  typedef typename T::ConstIterator ConstIterator;
108 
109 
111  {
112  ConceptUtils::sameType( myQ, myX.eval( ) );
113  }
114 
115  // ------------------------- Private Datas --------------------------------
116  private:
117  T myX;
118 
119  double myH;
122 
123  // ------------------------- Internals ------------------------------------
124  private:
125 
126  }; // end of concept CGlobalGeometricEstimator
127  }
128 } // namespace DGtal
129 
130 // //
132 
133 #endif // !defined CGlobalGeometricEstimator_h
134 
135 #undef CGlobalGeometricEstimator_RECURSES
136 #endif // else defined(CGlobalGeometricEstimator_RECURSES)
MyDigitalSurface::ConstIterator ConstIterator
void sameType(const T &, const T &)
Definition: ConceptUtils.h:117
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: This concept describes an object that can process a range so as to return one estimated quantity...
BOOST_CONCEPT_ASSERT((boost_concepts::ForwardTraversalConcept< ConstIterator >))
BOOST_CONCEPT_ASSERT((boost_concepts::ReadableIteratorConcept< ConstIterator >))
BOOST_CONCEPT_ASSERT((concepts::CQuantity< Quantity >))
Aim: defines the concept of quantity in DGtal.
Definition: CQuantity.h:93
Go to http://www.boost.org/doc/libs/1_52_0/libs/iterator/doc/ForwardTraversal.html.
Go to http://www.boost.org/doc/libs/1_52_0/libs/iterator/doc/ReadableIterator.html.