Generated on Mon May 10 06:47:00 2010 for Gecode by doxygen 1.6.3

Gecode::Iter::Ranges::Virt::RangesTemplate< I > Class Template Reference
[Range iterators with virtual member functions]

Adaptor class to virtualize any iterator. More...

#include <virtual-ranges.hpp>

List of all members.

Constructors and initialization



 RangesTemplate (I &i)
 Initialize with iterator i.
void init (I &i)
 Initialize with iterator i.

Iteration control



virtual void operator++ (void)
 Move iterator to next range (if possible).
virtual bool operator() (void)
 Test whether iterator is still at a range or done.

Range access



virtual int min (void) const
 Return smallest value of range.
virtual int max (void) const
 Return largest value of range.
virtual unsigned int width (void) const
 Return width of range (distance between minimum and maximum).

Detailed Description

template<class I>
class Gecode::Iter::Ranges::Virt::RangesTemplate< I >

Adaptor class to virtualize any iterator.

Provides an iterator with virtual member functions for any template-based iterator.

Definition at line 80 of file virtual-ranges.hpp.


Constructor & Destructor Documentation

template<class I >
Gecode::Iter::Ranges::Virt::RangesTemplate< I >::RangesTemplate ( I &  i  )  [inline]

Initialize with iterator i.

Definition at line 115 of file virtual-ranges.hpp.


Member Function Documentation

template<class I >
void Gecode::Iter::Ranges::Virt::RangesTemplate< I >::init ( I &  i  )  [inline]

Initialize with iterator i.

Definition at line 119 of file virtual-ranges.hpp.

template<class I >
void Gecode::Iter::Ranges::Virt::RangesTemplate< I >::operator++ ( void   )  [inline, virtual]

Move iterator to next range (if possible).

Implements Gecode::Iter::Ranges::Virt::Iterator.

Definition at line 127 of file virtual-ranges.hpp.

template<class I >
bool Gecode::Iter::Ranges::Virt::RangesTemplate< I >::operator() ( void   )  [inline, virtual]

Test whether iterator is still at a range or done.

Implements Gecode::Iter::Ranges::Virt::Iterator.

Definition at line 123 of file virtual-ranges.hpp.

template<class I >
int Gecode::Iter::Ranges::Virt::RangesTemplate< I >::min ( void   )  const [inline, virtual]

Return smallest value of range.

Implements Gecode::Iter::Ranges::Virt::Iterator.

Definition at line 131 of file virtual-ranges.hpp.

template<class I >
int Gecode::Iter::Ranges::Virt::RangesTemplate< I >::max ( void   )  const [inline, virtual]

Return largest value of range.

Implements Gecode::Iter::Ranges::Virt::Iterator.

Definition at line 135 of file virtual-ranges.hpp.

template<class I >
unsigned int Gecode::Iter::Ranges::Virt::RangesTemplate< I >::width ( void   )  const [inline, virtual]

Return width of range (distance between minimum and maximum).

Implements Gecode::Iter::Ranges::Virt::Iterator.

Definition at line 139 of file virtual-ranges.hpp.


The documentation for this class was generated from the following file: