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

Gecode::Iter::Ranges::Virt::NaryUnion 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 union for any number of iterators.

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

Constructors and initialization

 NaryUnion (void)
 Default constructor.
 NaryUnion (Iterator **i, int n)
 Initialize with n iterators in i.

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.

Protected Attributes

RangeUnionOrder order
 Instance for order.
Support::PQueue< Iterator *,
RangeUnionOrder
r
 Priority queue to give access to next range.

Classes

class  RangeUnionOrder
 Order for iterators: by increasing minimum of next range. More...


Constructor & Destructor Documentation

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

Default constructor.

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

Gecode::Iter::Ranges::Virt::NaryUnion::NaryUnion Iterator **  i,
int  n
[inline]
 

Initialize with n iterators in i.

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


Member Function Documentation

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

Return smallest value of range.

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

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

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

Return largest value of range.

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

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

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

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

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

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

void Gecode::Iter::Ranges::Virt::NaryUnion::operator++ void   )  [inline, virtual]
 

Move iterator to next range (if possible).

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

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

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

Test whether iterator is still at a range or done.

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

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


Member Data Documentation

RangeUnionOrder Gecode::Iter::Ranges::Virt::NaryUnion::order [protected]
 

Instance for order.

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

Support::PQueue<Iterator*,RangeUnionOrder> Gecode::Iter::Ranges::Virt::NaryUnion::r [protected]
 

Priority queue to give access to next range.

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


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