DGtal  1.5.beta
CCurveLocalGeometricEstimator.h
1 
17 #pragma once
18 
31 #if defined(CCurveLocalGeometricEstimator_RECURSES)
32 #error Recursive header files inclusion detected in CCurveLocalGeometricEstimator.h
33 #else // defined(CCurveLocalGeometricEstimator_RECURSES)
35 #define CCurveLocalGeometricEstimator_RECURSES
36 
37 #if !defined CCurveLocalGeometricEstimator_h
39 #define CCurveLocalGeometricEstimator_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 CCurveLocalGeometricEstimator
97  template <typename T>
99  {
100 
101  // ----------------------- Concept checks ------------------------------
102  public:
103 
104  typedef typename T::Quantity Quantity;
106 
107  typedef typename T::ConstIterator ConstIterator;
110 
111 
113  {
116  }
117 
118  // ------------------------- Private Datas --------------------------------
119  private:
120  T myX;
121 
122  double myH;
125  boost::iterator_archetype<Quantity,
126  boost::iterator_archetypes::writable_iterator_t,
127  boost::incrementable_traversal_tag > myIto;
128 
129  // ------------------------- Internals ------------------------------------
130  private:
131 
132  }; // end of concept CCurveLocalGeometricEstimator
133  }//namespace concepts
134 } // namespace DGtal
135 
136 // //
138 
139 #endif // !defined CCurveLocalGeometricEstimator_h
140 
141 #undef CCurveLocalGeometricEstimator_RECURSES
142 #endif // else defined(CCurveLocalGeometricEstimator_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::iterator_archetype< Quantity, boost::iterator_archetypes::writable_iterator_t, boost::incrementable_traversal_tag > myIto
BOOST_CONCEPT_ASSERT((concepts::CQuantity< Quantity >))
BOOST_CONCEPT_ASSERT((boost_concepts::ForwardTraversalConcept< ConstIterator >))
BOOST_CONCEPT_ASSERT((boost_concepts::ReadableIteratorConcept< ConstIterator >))
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.