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

Value iterator for selecting only negative values. More...

#include <values-negative.hpp>

List of all members.

Protected Attributes

i
 Input iterator.

Constructors and initialization

 Negative (void)
 Default constructor.
 Negative (I &i)
 Initialize with values from i.
void init (I &i)
 Initialize with values from i.

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 selecting only negative values.

If strict is true, zero is excluded.


Constructor & Destructor Documentation

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

Default constructor.

Definition at line 80 of file values-negative.hpp.

Gecode::Iter::Values::Negative::Negative ( I &  i) [inline]

Initialize with values from i.

Definition at line 90 of file values-negative.hpp.


Member Function Documentation

void Gecode::Iter::Values::Negative::init ( I &  i) [inline]

Initialize with values from i.

Definition at line 84 of file values-negative.hpp.

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

Test whether iterator is still at a value or done.

Definition at line 99 of file values-negative.hpp.

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

Move iterator to next value (if possible)

Definition at line 94 of file values-negative.hpp.

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

Return current value.

Definition at line 109 of file values-negative.hpp.


Member Data Documentation

Input iterator.

Definition at line 50 of file values-negative.hpp.


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