DGtal  1.4.beta
CPolarPointComparator2D.h
1 
17 #pragma once
18 
31 #if defined(CPolarPointComparator2D_RECURSES)
32 #error Recursive header files inclusion detected in CPolarPointComparator2D.h
33 #else // defined(CPolarPointComparator2D_RECURSES)
35 #define CPolarPointComparator2D_RECURSES
36 
37 #if !defined CPolarPointComparator2D_h
39 #define CPolarPointComparator2D_h
40 
42 // Inclusions
43 #include <iostream>
44 #include "DGtal/base/Common.h"
46 
47 namespace DGtal
48 {
49  namespace concepts
50  {
52  // class CPolarPointComparator2D
95  template <typename T>
98  {
99  // ----------------------- Concept checks ------------------------------
100  public:
101  typedef typename T::Point Point;
102 
104  {
105  myX.setPole( myP );
106 
108  }
110  {
111  // const method dummyConst should take parameter myA of type A and return
112  // something of type B
114  }
115  // ------------------------- Private Datas --------------------------------
116  private:
117  T myX; // do not require T to be default constructible.
119  bool myB;
120 
121 
122  }; // end of concept CPolarPointComparator2D
123  }
124 } // namespace DGtal
125 
126 // //
128 
129 #endif // !defined CPolarPointComparator2D_h
130 
131 #undef CPolarPointComparator2D_RECURSES
132 #endif // else defined(CPolarPointComparator2D_RECURSES)
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 gathers classes that are able to compare the position of two given points around a...
Go to http://www.sgi.com/tech/stl/Assignable.html.
Definition: Boost.dox:32
Go to http://www.sgi.com/tech/stl/CopyConstructible.html.
Definition: Boost.dox:34
Go to http://www.sgi.com/tech/stl/DefaultConstructible.html.
Definition: Boost.dox:30
MyPointD Point
Definition: testClone2.cpp:383