Generated on Wed Jul 27 2011 15:09:15 for Gecode by doxygen 1.7.4
Gecode::Iter::Values::Offset< I > Class Template Reference

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

#include <values-offset.hpp>

List of all members.

Protected Attributes

i
 Input iterator.
int c
 Offset for ranges.

Constructors and initialization

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

Iteration control

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

Value access

int val (void) const
 Return current value.

Detailed Description

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

Value iterator for pointwise offset (by some constant)

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


Constructor & Destructor Documentation

template<class I >
Gecode::Iter::Values::Offset< I >::Offset ( void  ) [inline]

Default constructor.

Definition at line 81 of file values-offset.hpp.

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

Initialize with values from i and offset c.

Definition at line 91 of file values-offset.hpp.


Member Function Documentation

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

Initialize with values from i and offset c.

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

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

Test whether iterator is still at a value or done.

Definition at line 100 of file values-offset.hpp.

template<class I >
void Gecode::Iter::Values::Offset< I >::operator++ ( void  ) [inline]

Move iterator to next value (if possible)

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

template<class I >
int Gecode::Iter::Values::Offset< I >::val ( void  ) const [inline]

Return current value.

Definition at line 106 of file values-offset.hpp.


Member Data Documentation

template<class I>
I Gecode::Iter::Values::Offset< I >::i [protected]

Input iterator.

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

template<class I>
int Gecode::Iter::Values::Offset< I >::c [protected]

Offset for ranges.

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


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