DGtal 1.3.0
Loading...
Searching...
No Matches
CBidirectionalRangeFromPoint.h
1
17#pragma once
18
31#if defined(CBidirectionalRangeFromPoint_RECURSES)
32#error Recursive header files inclusion detected in CBidirectionalRangeFromPoint.h
33#else // defined(CBidirectionalRangeFromPoint_RECURSES)
35#define CBidirectionalRangeFromPoint_RECURSES
36
37#if !defined CBidirectionalRangeFromPoint_h
39#define CBidirectionalRangeFromPoint_h
40
42// Inclusions
43#include <iostream>
44#include "DGtal/base/Common.h"
45#include "DGtal/base/CBidirectionalRange.h"
46#include "DGtal/base/CConstBidirectionalRangeFromPoint.h"
48
49namespace DGtal
50{
51
52 namespace concepts
53 {
54
56 // class CBidirectionalRangeFromPoint
94 template <typename T>
95
99 {
100 // ----------------------- Concept checks ------------------------------
101
102 public:
103 // 1. define first provided types (i.e. inner types), like
104 typedef typename T::Point Point;
105 typedef typename T::ReverseIterator ReverseIterator;
106
107
108 // 2. then check the presence of data members, operators and methods with
110 {
112 }
113
114 // ------------------------- Private Datas --------------------------------
115
116 private:
117 T myX; // do not require T to be default constructible.
120
121 // ------------------------- Internals ------------------------------------
122
123 private:
124
125 }; // end of concept CBidirectionalRangeFromPoint
126
127 } // namespace concepts
128
129} // namespace DGtal
130
131// //
133
134#endif // !defined CBidirectionalRangeFromPoint_h
135
136#undef CBidirectionalRangeFromPoint_RECURSES
137#endif // else defined(CBidirectionalRangeFromPoint_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 single pass range with a begin() method from a point.
Aim: Defines the concept describing a bidirectional range.
Aim: refined concept of const bidirectional range with a begin() method from a point.