DGtal  1.3.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)
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;
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)
ConstIterator
MyDigitalSurface::ConstIterator ConstIterator
Definition: greedy-plane-segmentation-ex2.cpp:93
DGtal::concepts::CConstSinglePassRange::ConstIterator
T::ConstIterator ConstIterator
Definition: CConstSinglePassRange.h:96
DGtal::concepts::CConstSinglePassRange::i
T i
Definition: CConstSinglePassRange.h:111
boost_concepts::SinglePassIteratorConcept
Go to http://www.boost.org/doc/libs/1_52_0/libs/iterator/doc/SinglePassIterator.html.
Definition: BoostConcepts.dox:44
DGtal::concepts::CConstSinglePassRange
Aim: Defines the concept describing a const single pass range.
Definition: CConstSinglePassRange.h:92
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
DGtal::concepts::CConstSinglePassRange::it
ConstIterator it
Definition: CConstSinglePassRange.h:112
DGtal::concepts::CConstSinglePassRange::checkConstConstraints
void checkConstConstraints() const
Definition: CConstSinglePassRange.h:104
DGtal::concepts::ConceptUtils::sameType
void sameType(const T &, const T &)
Definition: ConceptUtils.h:117
DGtal::concepts::CConstSinglePassRange::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((boost_concepts::SinglePassIteratorConcept< ConstIterator >))
DGtal::concepts::CConstSinglePassRange::BOOST_CONCEPT_USAGE
BOOST_CONCEPT_USAGE(CConstSinglePassRange)
Definition: CConstSinglePassRange.h:100