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

Gecode::Int::ViewRanges< View > Class Template Reference
[Programming integer actors]

List of all members.

Detailed Description

template<class View>
class Gecode::Int::ViewRanges< View >

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.

Definition at line 46 of file view.icc.

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).


Constructor & Destructor Documentation

template<class View>
Gecode::Int::ViewRanges< View >::ViewRanges void   ) 
 

Default constructor.

template<class View>
Gecode::Int::ViewRanges< View >::ViewRanges const View &  x  ) 
 

Initialize with ranges for view x.


Member Function Documentation

template<class View>
void Gecode::Int::ViewRanges< View >::init const View &  x  ) 
 

Initialize with ranges for view x.

template<class View>
bool Gecode::Int::ViewRanges< View >::operator() void   )  const
 

Test whether iterator is still at a range or done.

template<class View>
void Gecode::Int::ViewRanges< View >::operator++ void   ) 
 

Move iterator to next range (if possible).

template<class View>
int Gecode::Int::ViewRanges< View >::min void   )  const
 

Return smallest value of range.

template<class View>
int Gecode::Int::ViewRanges< View >::max void   )  const
 

Return largest value of range.

template<class View>
unsigned int Gecode::Int::ViewRanges< View >::width void   )  const
 

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


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