Generated on Tue Sep 25 2012 20:53:32 for Gecode by doxygen 1.7.5
Gecode::Iter::Ranges::Positive Class Reference

Range iterator for positive part of a range iterator. More...

#include <ranges-positive.hpp>

List of all members.

Protected Attributes

i
 Input iterator.

Constructors and initialization

 Positive (void)
 Default constructor.
 Positive (I &i)
 Initialize with ranges from i.
void init (I &i)
 Initialize with ranges from i.

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 positive part of a range iterator.

If strict is true, zero is excluded.


Constructor & Destructor Documentation

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

Default constructor.

Definition at line 87 of file ranges-positive.hpp.

Gecode::Iter::Ranges::Positive::Positive ( I &  i) [inline]

Initialize with ranges from i.

Definition at line 102 of file ranges-positive.hpp.


Member Function Documentation

void Gecode::Iter::Ranges::Positive::init ( I &  i) [inline]

Initialize with ranges from i.

Definition at line 91 of file ranges-positive.hpp.

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

Test whether iterator is still at a range or done.

Definition at line 113 of file ranges-positive.hpp.

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

Move iterator to next range (if possible)

Definition at line 108 of file ranges-positive.hpp.

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

Return smallest value of range.

Definition at line 119 of file ranges-positive.hpp.

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

Return largest value of range.

Definition at line 128 of file ranges-positive.hpp.

unsigned int Gecode::Iter::Ranges::Positive::width ( void  ) const [inline]

Return width of range (distance between minimum and maximum)

Definition at line 133 of file ranges-positive.hpp.


Member Data Documentation

Input iterator.

Definition at line 53 of file ranges-positive.hpp.


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