Gecode::Iter::Ranges::Virt::Iterator Class Reference
[Range iterators with virtual member functions]
Inherited by Gecode::Iter::Ranges::Virt::Compl< UMIN, UMAX >, Gecode::Iter::Ranges::Virt::ComplVal, Gecode::Iter::Ranges::Virt::Inter, Gecode::Iter::Ranges::Virt::NaryInter, Gecode::Iter::Ranges::Virt::NaryUnion, Gecode::Iter::Ranges::Virt::RangesTemplate< I >, and Gecode::Iter::Ranges::Virt::Union.
Detailed Description
Abstract base class for range iterators.Definition at line 45 of file virtual-ranges.icc.
Iteration control | |
virtual void | operator++ (void)=0 |
Move iterator to next range (if possible). | |
virtual bool | operator() (void)=0 |
Test whether iterator is still at a range or done. | |
Range access | |
virtual int | min (void) const =0 |
Return smallest value of range. | |
virtual int | max (void) const =0 |
Return largest value of range. | |
virtual unsigned int | width (void) const =0 |
Return width of range (distance between minimum and maximum). | |
Public Member Functions | |
virtual | ~Iterator (void) |
Virtual destructor. |
Constructor & Destructor Documentation
Gecode::Iter::Ranges::Virt::Iterator::~Iterator | ( | void | ) | [inline, virtual] |
Member Function Documentation
virtual void Gecode::Iter::Ranges::Virt::Iterator::operator++ | ( | void | ) | [pure virtual] |
Move iterator to next range (if possible).
Implemented in Gecode::Iter::Ranges::Virt::Compl< UMIN, UMAX >, Gecode::Iter::Ranges::Virt::ComplVal, Gecode::Iter::Ranges::Virt::Inter, Gecode::Iter::Ranges::Virt::NaryInter, Gecode::Iter::Ranges::Virt::Union, Gecode::Iter::Ranges::Virt::NaryUnion, and Gecode::Iter::Ranges::Virt::RangesTemplate< I >.
virtual bool Gecode::Iter::Ranges::Virt::Iterator::operator() | ( | void | ) | [pure virtual] |
Test whether iterator is still at a range or done.
Implemented in Gecode::Iter::Ranges::Virt::Compl< UMIN, UMAX >, Gecode::Iter::Ranges::Virt::ComplVal, Gecode::Iter::Ranges::Virt::Inter, Gecode::Iter::Ranges::Virt::NaryInter, Gecode::Iter::Ranges::Virt::Union, Gecode::Iter::Ranges::Virt::NaryUnion, and Gecode::Iter::Ranges::Virt::RangesTemplate< I >.
virtual int Gecode::Iter::Ranges::Virt::Iterator::min | ( | void | ) | const [pure virtual] |
Return smallest value of range.
Implemented in Gecode::Iter::Ranges::Virt::Compl< UMIN, UMAX >, Gecode::Iter::Ranges::Virt::ComplVal, Gecode::Iter::Ranges::Virt::Inter, Gecode::Iter::Ranges::Virt::NaryInter, Gecode::Iter::Ranges::Virt::Union, Gecode::Iter::Ranges::Virt::NaryUnion, and Gecode::Iter::Ranges::Virt::RangesTemplate< I >.
virtual int Gecode::Iter::Ranges::Virt::Iterator::max | ( | void | ) | const [pure virtual] |
Return largest value of range.
Implemented in Gecode::Iter::Ranges::Virt::Compl< UMIN, UMAX >, Gecode::Iter::Ranges::Virt::ComplVal, Gecode::Iter::Ranges::Virt::Inter, Gecode::Iter::Ranges::Virt::NaryInter, Gecode::Iter::Ranges::Virt::Union, Gecode::Iter::Ranges::Virt::NaryUnion, and Gecode::Iter::Ranges::Virt::RangesTemplate< I >.
virtual unsigned int Gecode::Iter::Ranges::Virt::Iterator::width | ( | void | ) | const [pure virtual] |
Return width of range (distance between minimum and maximum).
Implemented in Gecode::Iter::Ranges::Virt::Compl< UMIN, UMAX >, Gecode::Iter::Ranges::Virt::ComplVal, Gecode::Iter::Ranges::Virt::Inter, Gecode::Iter::Ranges::Virt::NaryInter, Gecode::Iter::Ranges::Virt::Union, Gecode::Iter::Ranges::Virt::NaryUnion, and Gecode::Iter::Ranges::Virt::RangesTemplate< I >.
The documentation for this class was generated from the following file:
- gecode/iter/virtual-ranges.icc (Revision: 4973)