Generated on Tue Sep 25 2012 20:53:28 for Gecode by doxygen 1.7.5
Gecode::Int::ViewRanges Class Reference

Range iterator for integer views. More...

#include <view.hpp>

List of all members.

Constructors and initialization

 ViewRanges (void)
 Default constructor.
 ViewRanges (const View &x)
 Initialize with ranges for view x.
void init (const View &x)
 Initialize with ranges for view x.

Iteration control

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

Range access

int min (void) const
 Return smallest value of range.
int max (void) const
 Return largest value of range.
unsigned int width (void) const
 Return width of range (distance between minimum and maximum)

Detailed Description

Range iterator for integer views.

This class provides (by specialization) a range iterator for all integer views.

Note that this template class serves only as a specification of the interface of the various specializations.


Constructor & Destructor Documentation

Gecode::Int::ViewRanges::ViewRanges ( void  )

Default constructor.

Reimplemented in Gecode::Int::ViewRanges< CachedView< View > >.

Gecode::Int::ViewRanges::ViewRanges ( const View &  x)

Initialize with ranges for view x.


Member Function Documentation

void Gecode::Int::ViewRanges::init ( const View &  x)

Initialize with ranges for view x.

bool Gecode::Int::ViewRanges::operator() ( void  ) const

Test whether iterator is still at a range or done.

void Gecode::Int::ViewRanges::operator++ ( void  )

Move iterator to next range (if possible)

int Gecode::Int::ViewRanges::min ( void  ) const

Return smallest value of range.

int Gecode::Int::ViewRanges::max ( void  ) const

Return largest value of range.

unsigned int Gecode::Int::ViewRanges::width ( void  ) const

Return width of range (distance between minimum and maximum)


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