DGtal  1.5.beta
CConstBidirectionalRangeFromPoint.h
1 
17 #pragma once
18 
31 #if defined(CConstBidirectionalRangeFromPoint_RECURSES)
32 #error Recursive header files inclusion detected in CConstBidirectionalRangeFromPoint.h
33 #else // defined(CConstBidirectionalRangeFromPoint_RECURSES)
35 #define CConstBidirectionalRangeFromPoint_RECURSES
36 
37 #if !defined CConstBidirectionalRangeFromPoint_h
39 #define CConstBidirectionalRangeFromPoint_h
40 
42 // Inclusions
43 #include "DGtal/base/Common.h"
44 #include "DGtal/base/CConstBidirectionalRange.h"
46 
47 namespace DGtal
48 {
49 
50  namespace concepts
51  {
52 
54  // class CConstBidirectionalRangeFromPoint
91  template <typename T>
93  {
94  // ----------------------- Concept checks ------------------------------
95  public:
96  // 1. define first provided types (i.e. inner types), like
97  typedef typename T::Point Point;
98 
99  // 2. then check the presence of data members, operators and methods with
101  {
103  }
105  {
106  // const method dummyConst should take parameter myA of type A and return
107  // something of type B
109  }
110  // ------------------------- Private Datas --------------------------------
111  private:
112  T myX; // do not require T to be default constructible.
114  typename T::ConstReverseIterator myB;
115 
116  // ------------------------- Internals ------------------------------------
117  private:
118 
119  }; // end of concept CConstBidirectionalRangeFromPoint
120 
121  } // namespace concepts
122 
123 } // namespace DGtal
124 
127 
128 #endif // !defined CConstBidirectionalRangeFromPoint_h
129 
130 #undef CConstBidirectionalRangeFromPoint_RECURSES
131 #endif // else defined(CConstBidirectionalRangeFromPoint_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: refined concept of const bidirectional range with a begin() method from a point.
Aim: Defines the concept describing a bidirectional const range.
MyPointD Point
Definition: testClone2.cpp:383