DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CSinglePassRangeFromPoint.h
1 
17 #pragma once
18 
31 #if defined(CSinglePassRangeFromPoint_RECURSES)
32 #error Recursive header files inclusion detected in CSinglePassRangeFromPoint.h
33 #else // defined(CSinglePassRangeFromPoint_RECURSES)
34 
35 #define CSinglePassRangeFromPoint_RECURSES
36 
37 #if !defined CSinglePassRangeFromPoint_h
38 
39 #define CSinglePassRangeFromPoint_h
40 
42 // Inclusions
43 #include <iostream>
44 #include "DGtal/base/Common.h"
46 
47 namespace DGtal
48 {
49 
51  // class CSinglePassRangeFromPoint
87  template <typename T>
91  {
92  // ----------------------- Concept checks ------------------------------
93  public:
94  // 1. define first provided types (i.e. inner types), like
95  typedef typename T::Point Point;
96 
97  // 2. then check the presence of data members, operators and methods with
99  {
100  ConceptUtils::sameType( myIt, myX.begin( myPoint ) );
101  }
102 
103  // ------------------------- Private Datas --------------------------------
104  private:
105  T myX; // do not require T to be default constructible.
107  Iterartor myIt;
108 
109  // ------------------------- Internals ------------------------------------
110  private:
111 
112  }; // end of concept CSinglePassRangeFromPoint
113 
114 } // namespace DGtal
115 
116 // //
118 
119 #endif // !defined CSinglePassRangeFromPoint_h
120 
121 #undef CSinglePassRangeFromPoint_RECURSES
122 #endif // else defined(CSinglePassRangeFromPoint_RECURSES)