Generated on Tue Sep 25 2012 20:53:32 for Gecode by doxygen 1.7.5
Gecode::Iter::Values::Offset Class 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

Value iterator for pointwise offset (by some constant)


Constructor & Destructor Documentation

Gecode::Iter::Values::Offset::Offset ( void  ) [inline]

Default constructor.

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

Gecode::Iter::Values::Offset::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

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

Initialize with values from i and offset c.

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

bool Gecode::Iter::Values::Offset::operator() ( void  ) const [inline]

Test whether iterator is still at a value or done.

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

void Gecode::Iter::Values::Offset::operator++ ( void  ) [inline]

Move iterator to next value (if possible)

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

int Gecode::Iter::Values::Offset::val ( void  ) const [inline]

Return current value.

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


Member Data Documentation

Input iterator.

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

Offset for ranges.

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


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