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>
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
Gecode::Iter::Ranges::Virt::RangesTemplate< I >::RangesTemplate | ( | I & | i | ) |
Initialize with iterator i.
Definition at line 115 of file virtual-ranges.hpp.
Member Function Documentation
void Gecode::Iter::Ranges::Virt::RangesTemplate< I >::init | ( | I & | i | ) |
Initialize with iterator i.
Definition at line 119 of file virtual-ranges.hpp.
void Gecode::Iter::Ranges::Virt::RangesTemplate< I >::operator++ | ( | void | ) | [virtual] |
Move iterator to next range (if possible).
Implements Gecode::Iter::Ranges::Virt::Iterator.
Definition at line 127 of file virtual-ranges.hpp.
bool Gecode::Iter::Ranges::Virt::RangesTemplate< I >::operator() | ( | void | ) | [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.
int Gecode::Iter::Ranges::Virt::RangesTemplate< I >::min | ( | void | ) | const [virtual] |
Return smallest value of range.
Implements Gecode::Iter::Ranges::Virt::Iterator.
Definition at line 131 of file virtual-ranges.hpp.
int Gecode::Iter::Ranges::Virt::RangesTemplate< I >::max | ( | void | ) | const [virtual] |
Return largest value of range.
Implements Gecode::Iter::Ranges::Virt::Iterator.
Definition at line 135 of file virtual-ranges.hpp.
unsigned int Gecode::Iter::Ranges::Virt::RangesTemplate< I >::width | ( | void | ) | const [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:
- gecode/iter/virtual-ranges.hpp (Revision: 9692)