DGtal  0.9.2
CConstBidirectionalRange.h
1 
17 #pragma once
18 
31 #if defined(CConstBidirectionalRange_RECURSES)
32 #error Recursive header files inclusion detected in CConstBidirectionalRange.h
33 #else // defined(CConstBidirectionalRange_RECURSES)
34 
35 #define CConstBidirectionalRange_RECURSES
36 
37 #if !defined CConstBidirectionalRange_h
38 
39 #define CConstBidirectionalRange_h
40 
42 // Inclusions
43 #include "DGtal/base/Common.h"
44 #include "boost/concept_check.hpp"
45 #include "DGtal/base/ConceptUtils.h"
46 #include "DGtal/base/CConstSinglePassRange.h"
48 
49 namespace DGtal
50 {
51 
52  namespace concepts
53  {
54 
56  // class CConstBidirectionalRange
88  template <typename T>
90  {
91  // ----------------------- Concept checks ------------------------------
92  public:
93  typedef typename T::ConstReverseIterator ConstReverseIterator;
94 
96 
98  {
100  }
102  {
105  }
106 
107  private:
108  T i;
109  ConstReverseIterator it;
110  }; // end of concept CConstBidirectionalRange
111 
112  } // namespace concepts
113 
114 } // namespace DGtal
115 
116 
117 
120 
121 #endif // !defined CConstBidirectionalRange_h
122 
123 #undef CConstBidirectionalRange_RECURSES
124 #endif // else defined(CConstBidirectionalRange_RECURSES)
Aim: Defines the concept describing a bidirectional const range.
Aim: Defines the concept describing a const single pass range.
BOOST_CONCEPT_ASSERT((boost_concepts::SinglePassIteratorConcept< ConstReverseIterator >))
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.