Generated on Sat Feb 7 2015 02:01:50 for Gecode by doxygen 1.8.9.1
Gecode::Iter::Ranges::Offset< I > Class Template Reference

Range iterator for pointwise offset (by some constant) More...

#include <ranges-offset.hpp>

Protected Attributes

i
 Input range. More...
 
int c
 Offset for ranges. More...
 

Constructors and initialization

 Offset (void)
 Default constructor. More...
 
 Offset (I &i, int c)
 Initialize with ranges from i and offset c. More...
 
void init (I &i, int c)
 Initialize with ranges from i and offset c. More...
 

Iteration control

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

Range access

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

Detailed Description

template<class I>
class Gecode::Iter::Ranges::Offset< I >

Range iterator for pointwise offset (by some constant)

Definition at line 46 of file ranges-offset.hpp.

Constructor & Destructor Documentation

template<class I >
Gecode::Iter::Ranges::Offset< I >::Offset ( void  )
inline

Default constructor.

Definition at line 85 of file ranges-offset.hpp.

template<class I>
Gecode::Iter::Ranges::Offset< I >::Offset ( I &  i,
int  c 
)
inline

Initialize with ranges from i and offset c.

Definition at line 95 of file ranges-offset.hpp.

Member Function Documentation

template<class I>
void Gecode::Iter::Ranges::Offset< I >::init ( I &  i,
int  c 
)
inline

Initialize with ranges from i and offset c.

Definition at line 89 of file ranges-offset.hpp.

template<class I >
bool Gecode::Iter::Ranges::Offset< I >::operator() ( void  ) const
inline

Test whether iterator is still at a range or done.

Definition at line 104 of file ranges-offset.hpp.

template<class I >
void Gecode::Iter::Ranges::Offset< I >::operator++ ( void  )
inline

Move iterator to next range (if possible)

Definition at line 99 of file ranges-offset.hpp.

template<class I >
int Gecode::Iter::Ranges::Offset< I >::min ( void  ) const
inline

Return smallest value of range.

Definition at line 110 of file ranges-offset.hpp.

template<class I >
int Gecode::Iter::Ranges::Offset< I >::max ( void  ) const
inline

Return largest value of range.

Definition at line 115 of file ranges-offset.hpp.

template<class I >
unsigned int Gecode::Iter::Ranges::Offset< I >::width ( void  ) const
inline

Return width of range (distance between minimum and maximum)

Definition at line 120 of file ranges-offset.hpp.

Member Data Documentation

template<class I>
I Gecode::Iter::Ranges::Offset< I >::i
protected

Input range.

Definition at line 49 of file ranges-offset.hpp.

template<class I>
int Gecode::Iter::Ranges::Offset< I >::c
protected

Offset for ranges.

Definition at line 51 of file ranges-offset.hpp.


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