DGtal  0.9.2
COrientationFunctor.h
1 
17 #pragma once
18 
31 #if defined(COrientationFunctor_RECURSES)
32 #error Recursive header files inclusion detected in COrientationFunctor.h
33 #else // defined(COrientationFunctor_RECURSES)
34 
35 #define COrientationFunctor_RECURSES
36 
37 #if !defined COrientationFunctor_h
38 
39 #define COrientationFunctor_h
40 
42 // Inclusions
43 #include <iostream>
44 #include "DGtal/base/Common.h"
45 
46 #include "DGtal/kernel/CPointFunctor.h"
47 #include "DGtal/kernel/CSignedNumber.h"
49 
50 namespace DGtal
51 {
52  namespace concepts
53  {
55  // class COrientationFunctor
112  template <typename T>
114  {
115  // ----------------------- Concept checks ------------------------------
116  public:
117 
119 
120  typedef typename T::PointArray PointArray;
121  typedef typename T::SizeArray SizeArray;
122 
124  {
126  myX.init( myA );
127  }
128  // ------------------------- Private Datas --------------------------------
129  private:
130  T myX;
131  PointArray myA;
132  SizeArray myS;
133 
134  }; // end of concept COrientationFunctor
135  }
136 } // namespace DGtal
137 
138 // //
140 
141 #endif // !defined COrientationFunctor_h
142 
143 #undef COrientationFunctor_RECURSES
144 #endif // else defined(COrientationFunctor_RECURSES)
BOOST_CONCEPT_ASSERT((concepts::CSignedNumber< typename T::Value >))
void sameType(const T &t1, const T &t2)
Aim: Concept checking for Signed Numbers. Models of this concept should be listed in NumberTraits cla...
Definition: CSignedNumber.h:97
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: This concept gathers models implementing an orientation test of points in a space of dimension ...
Aim: Defines a functor on points.
Definition: CPointFunctor.h:88