DGtal  0.9.2
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)
34 
35 #define CCurveLocalGeometricEstimator_RECURSES
36 
37 #if !defined CCurveLocalGeometricEstimator_h
38 
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>
100  {
101 
102  // ----------------------- Concept checks ------------------------------
103  public:
104 
105  typedef typename T::Quantity Quantity;
107 
108  typedef typename T::ConstIterator ConstIterator;
111 
112 
114  {
115  //init method
116  myX.init( myH, myItb, myIte );
117 
120  }
121 
122  // ------------------------- Private Datas --------------------------------
123  private:
124  T myX;
125 
126  double myH;
127  ConstIterator myItb, myIte;
128  Quantity myQ;
129  boost::iterator_archetype<Quantity,
130  boost::iterator_archetypes::writable_iterator_t,
131  boost::incrementable_traversal_tag > myIto;
132 
133  // ------------------------- Internals ------------------------------------
134  private:
135 
136  }; // end of concept CCurveLocalGeometricEstimator
137  }//namespace concepts
138 } // namespace DGtal
139 
140 // //
142 
143 #endif // !defined CCurveLocalGeometricEstimator_h
144 
145 #undef CCurveLocalGeometricEstimator_RECURSES
146 #endif // else defined(CCurveLocalGeometricEstimator_RECURSES)
boost::iterator_archetype< Quantity, boost::iterator_archetypes::writable_iterator_t, boost::incrementable_traversal_tag > myIto
Go to http://www.sgi.com/tech/stl/DefaultConstructible.html.
Definition: Boost.dox:30
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...
BOOST_CONCEPT_ASSERT((concepts::CQuantity< Quantity >))
Go to http://www.boost.org/doc/libs/1_52_0/libs/iterator/doc/ReadableIterator.html.