DGtal  1.5.beta
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)
35 #define CConstSinglePassRange_RECURSES
36 
37 #if !defined CConstSinglePassRange_h
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;
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)
MyDigitalSurface::ConstIterator ConstIterator
void sameType(const T &, const T &)
Definition: ConceptUtils.h:117
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: Defines the concept describing a const single pass range.
BOOST_CONCEPT_ASSERT((boost_concepts::SinglePassIteratorConcept< ConstIterator >))
Go to http://www.boost.org/doc/libs/1_52_0/libs/iterator/doc/SinglePassIterator.html.