33#if defined(SimpleConstRange_RECURSES)
34#error Recursive header files inclusion detected in SimpleConstRange.h
37#define SimpleConstRange_RECURSES
39#if !defined SimpleConstRange_h
41#define SimpleConstRange_h
47#include "DGtal/base/BasicFunctors.h"
48#include "DGtal/base/Circulator.h"
49#include "DGtal/base/ConstIteratorAdapter.h"
50#include "boost/concept_check.hpp"
71 template <
typename TConstIterator>
112 if (
this != &other )
139 out <<
"[SimpleConstRange]" << std::endl;
141 std::copy(
myBegin,
myEnd, std::ostream_iterator<Value>(out,
", ") );
150 return "SimpleConstRange";
196 ConstReverseIterator
rend()
const {
204 ConstCirculator
c()
const {
212 ConstReverseCirculator
rc()
const {
225#undef SimpleConstRange_RECURSES
Aim: Provides an adapter for classical iterators that can iterate through the underlying data structu...
Aim: model of CConstRange that adapts any range of elements bounded by two iterators [itb,...
Circulator< ConstIterator > ConstCirculator
BOOST_CONCEPT_ASSERT((boost::BidirectionalIterator< TConstIterator >))
std::reverse_iterator< ConstCirculator > ConstReverseCirculator
SimpleConstRange(const SimpleConstRange &other)
ConstIterator end() const
std::string className() const
ConstReverseIterator rbegin() const
ConstReverseCirculator rc() const
std::reverse_iterator< ConstIterator > ConstReverseIterator
TConstIterator ConstIterator
SimpleConstRange(const TConstIterator &itb, const TConstIterator &ite)
ConstIterator begin() const
ConstReverseIterator rend() const
SimpleConstRange & operator=(const SimpleConstRange &other)
ConstCirculator c() const
void selfDisplay(std::ostream &out) const
DGtal is the top-level namespace which contains all DGtal functions and types.
Go to http://www.sgi.com/tech/stl/BidirectionalIterator.html.