Generated on Sat Aug 25 2012 15:53:13 for Gecode by doxygen 1.7.5
Gecode::Iter::Ranges::Offset Class Reference

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

#include <ranges-offset.hpp>

List of all members.

Protected Attributes

i
 Input range.
int c
 Offset for ranges.

Constructors and initialization

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

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 pointwise offset (by some constant)


Constructor & Destructor Documentation

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

Default constructor.

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

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

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

Initialize with ranges from i and offset c.

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

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

Test whether iterator is still at a range or done.

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

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

Move iterator to next range (if possible)

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

int Gecode::Iter::Ranges::Offset::min ( void  ) const [inline]

Return smallest value of range.

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

int Gecode::Iter::Ranges::Offset::max ( void  ) const [inline]

Return largest value of range.

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

unsigned int Gecode::Iter::Ranges::Offset::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

Input range.

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

Offset for ranges.

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


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