Generated on Sat Feb 7 2015 02:01:50 for Gecode by doxygen 1.8.9.1
Gecode::Iter::Values::Positive< I, strict > Class Template Reference

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

#include <values-positive.hpp>

Protected Attributes

i
 Input iterator. More...
 

Constructors and initialization

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

Iteration control

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

Value access

int val (void) const
 Return current value. More...
 

Detailed Description

template<class I, bool strict = false>
class Gecode::Iter::Values::Positive< I, strict >

Value iterator for selecting only positive values.

If strict is true, zero is included.

Definition at line 47 of file values-positive.hpp.

Constructor & Destructor Documentation

template<class I , bool strict>
Gecode::Iter::Values::Positive< I, strict >::Positive ( void  )
inline

Default constructor.

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

template<class I , bool strict>
Gecode::Iter::Values::Positive< I, strict >::Positive ( I &  i)
inline

Initialize with values from i.

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

Member Function Documentation

template<class I , bool strict>
void Gecode::Iter::Values::Positive< I, strict >::init ( I &  i)
inline

Initialize with values from i.

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

template<class I , bool strict>
bool Gecode::Iter::Values::Positive< I, strict >::operator() ( void  ) const
inline

Test whether iterator is still at a value or done.

Definition at line 110 of file values-positive.hpp.

template<class I , bool strict>
void Gecode::Iter::Values::Positive< I, strict >::operator++ ( void  )
inline

Move iterator to next value (if possible)

Definition at line 105 of file values-positive.hpp.

template<class I , bool strict>
int Gecode::Iter::Values::Positive< I, strict >::val ( void  ) const
inline

Return current value.

Definition at line 116 of file values-positive.hpp.

Member Data Documentation

template<class I , bool strict = false>
I Gecode::Iter::Values::Positive< I, strict >::i
protected

Input iterator.

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


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