Generated on Wed Nov 1 15:05:21 2006 for Gecode by doxygen 1.4.5

Gecode::Iter::Ranges::Virt::Union Class Reference
[Range iterators with virtual member functions]

Inherits Gecode::Iter::Ranges::MinMax, and Gecode::Iter::Ranges::Virt::Iterator.

List of all members.


Detailed Description

Range iterator for computing union (binary).

Requires

 #include "gecode/iter.hh" 

Definition at line 33 of file virtual-ranges-union.icc.

Constructors and initialization

 Union (void)
 Default constructor.
 Union (Iterator *i, Iterator *j)
 Initialize with iterator i and j.
 ~Union (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

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


Constructor & Destructor Documentation

Gecode::Iter::Ranges::Virt::Union::Union void   )  [inline]
 

Default constructor.

Definition at line 153 of file virtual-ranges-union.icc.

Gecode::Iter::Ranges::Virt::Union::Union Iterator i,
Iterator j
[inline]
 

Initialize with iterator i and j.

Definition at line 156 of file virtual-ranges-union.icc.

Gecode::Iter::Ranges::Virt::Union::~Union void   )  [inline]
 

Destructor.

Definition at line 162 of file virtual-ranges-union.icc.


Member Function Documentation

int Gecode::Iter::Ranges::Virt::Union::min void   )  const [inline, virtual]
 

Return smallest value of range.

Reimplemented from Gecode::Iter::Ranges::MinMax.

Definition at line 168 of file virtual-ranges-union.icc.

int Gecode::Iter::Ranges::Virt::Union::max void   )  const [inline, virtual]
 

Return largest value of range.

Reimplemented from Gecode::Iter::Ranges::MinMax.

Definition at line 171 of file virtual-ranges-union.icc.

unsigned int Gecode::Iter::Ranges::Virt::Union::width void   )  const [inline, virtual]
 

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

Reimplemented from Gecode::Iter::Ranges::MinMax.

Definition at line 174 of file virtual-ranges-union.icc.

void Gecode::Iter::Ranges::Virt::Union::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-union.icc.

bool Gecode::Iter::Ranges::Virt::Union::operator() void   )  [inline, virtual]
 

Test whether iterator is still at a range or done.

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

Definition at line 165 of file virtual-ranges-union.icc.


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