DGtal  0.9.2
CConstSinglePassRange.h
1 
17 #pragma once
18 
31 #if defined(CConstSinglePassRange_RECURSES)
32 #error Recursive header files inclusion detected in CConstSinglePassRange.h
33 #else // defined(CConstSinglePassRange_RECURSES)
34 
35 #define CConstSinglePassRange_RECURSES
36 
37 #if !defined CConstSinglePassRange_h
38 
39 #define CConstSinglePassRange_h
40 
42 // Inclusions
43 #include "DGtal/base/Common.h"
44 #include "boost/concept_check.hpp"
45 #include "DGtal/base/ConceptUtils.h"
47 
48 namespace DGtal
49 {
50 
51  namespace concepts {
52 
54  // class CConstSinglePassRange
91  template <typename T>
93  {
94  // ----------------------- Concept checks ------------------------------
95  public:
96  typedef typename T::ConstIterator ConstIterator;
97 
99 
101  {
103  }
105  {
108  }
109 
110  private:
111  T i;
112  ConstIterator it;
113  }; // end of concept CConstSinglePassRange
114 
115  } // namespace concepts
116 
117 } // namespace DGtal
118 
119 
120 
121 // //
123 
124 #endif // !defined CConstSinglePassRange_h
125 
126 #undef CConstSinglePassRange_RECURSES
127 #endif // else defined(CConstSinglePassRange_RECURSES)
Aim: Defines the concept describing a const single pass range.
BOOST_CONCEPT_ASSERT((boost_concepts::SinglePassIteratorConcept< ConstIterator >))
void sameType(const T &t1, const T &t2)
DGtal is the top-level namespace which contains all DGtal functions and types.
Go to http://www.boost.org/doc/libs/1_52_0/libs/iterator/doc/SinglePassIterator.html.