Gecode::Iter::Ranges::Virt::RangesTemplate< I > Class Template Reference
[Range iterators with virtual member functions]
Inherits Gecode::Iter::Ranges::Virt::Iterator.
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.icc.
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). |
Constructor & Destructor Documentation
Gecode::Iter::Ranges::Virt::RangesTemplate< I >::RangesTemplate | ( | I & | i | ) | [inline] |
Member Function Documentation
void Gecode::Iter::Ranges::Virt::RangesTemplate< I >::init | ( | I & | i | ) | [inline] |
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 124 of file virtual-ranges.icc.
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 120 of file virtual-ranges.icc.
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 128 of file virtual-ranges.icc.
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 132 of file virtual-ranges.icc.
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 136 of file virtual-ranges.icc.
The documentation for this class was generated from the following file:
- gecode/iter/virtual-ranges.icc (Revision: 4973)