Gecode::Iter::Ranges::Virt::Inter Class Reference
[Range iterators with virtual member functions]
Range iterator for computing intersection (binary). More...
#include <virtual-ranges-inter.hpp>
Protected Attributes | |
Iterator * | i |
First iterator. | |
Iterator * | j |
Second iterator. | |
Constructors and initialization | |
| |
Inter (void) | |
Default constructor. | |
Inter (Iterator *i, Iterator *j) | |
Initialize with iterator i and j. | |
~Inter (void) | |
Destructor. | |
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). | |
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. |
Detailed Description
Range iterator for computing intersection (binary).
Definition at line 47 of file virtual-ranges-inter.hpp.
Constructor & Destructor Documentation
Gecode::Iter::Ranges::Virt::Inter::Inter | ( | void | ) | [inline] |
Default constructor.
Definition at line 152 of file virtual-ranges-inter.hpp.
Initialize with iterator i and j.
Definition at line 155 of file virtual-ranges-inter.hpp.
Gecode::Iter::Ranges::Virt::Inter::~Inter | ( | void | ) | [inline] |
Destructor.
Definition at line 161 of file virtual-ranges-inter.hpp.
Member Function Documentation
int Gecode::Iter::Ranges::Virt::Inter::min | ( | void | ) | const [inline, virtual] |
Return smallest value of range.
Reimplemented from Gecode::Iter::Ranges::MinMax.
Definition at line 167 of file virtual-ranges-inter.hpp.
int Gecode::Iter::Ranges::Virt::Inter::max | ( | void | ) | const [inline, virtual] |
Return largest value of range.
Reimplemented from Gecode::Iter::Ranges::MinMax.
Definition at line 170 of file virtual-ranges-inter.hpp.
unsigned int Gecode::Iter::Ranges::Virt::Inter::width | ( | void | ) | const [inline, virtual] |
Return width of range (distance between minimum and maximum).
Reimplemented from Gecode::Iter::Ranges::MinMax.
Definition at line 173 of file virtual-ranges-inter.hpp.
void Gecode::Iter::Ranges::Virt::Inter::operator++ | ( | void | ) | [inline, virtual] |
Move iterator to next range (if possible).
Implements Gecode::Iter::Ranges::Virt::Iterator.
Definition at line 134 of file virtual-ranges-inter.hpp.
bool Gecode::Iter::Ranges::Virt::Inter::operator() | ( | void | ) | [inline, virtual] |
Test whether iterator is still at a range or done.
Implements Gecode::Iter::Ranges::Virt::Iterator.
Definition at line 164 of file virtual-ranges-inter.hpp.
Member Data Documentation
Iterator* Gecode::Iter::Ranges::Virt::Inter::i [protected] |
First iterator.
Definition at line 52 of file virtual-ranges-inter.hpp.
Iterator* Gecode::Iter::Ranges::Virt::Inter::j [protected] |
Second iterator.
Definition at line 54 of file virtual-ranges-inter.hpp.
The documentation for this class was generated from the following file:
- gecode/iter/virtual-ranges-inter.hpp (Revision: 7989)