Generated on Thu Mar 22 10:39:59 2012 for Gecode by doxygen 1.6.3

Gecode::Iter::Ranges::ToValues< I > Class Template Reference
[Value iterators]

Value iterator from range iterator. More...

#include <ranges-values.hpp>

List of all members.

Protected Member Functions

void start (void)
 Initialize iterator.

Protected Attributes

i
 Range iterator used.
int cur
 Current value.
int max
 End of current range.

Constructors and initialization



 ToValues (void)
 Default constructor.
 ToValues (I &i)
 Initialize with values from range iterator i.
void init (I &i)
 Initialize with values from range iterator 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

template<class I>
class Gecode::Iter::Ranges::ToValues< I >

Value iterator from range iterator.

Definition at line 46 of file ranges-values.hpp.


Constructor & Destructor Documentation

template<class I >
Gecode::Iter::Ranges::ToValues< I >::ToValues ( void   )  [inline]

Default constructor.

Definition at line 86 of file ranges-values.hpp.

template<class I>
Gecode::Iter::Ranges::ToValues< I >::ToValues ( I &  i  )  [inline]

Initialize with values from range iterator i.

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


Member Function Documentation

template<class I >
void Gecode::Iter::Ranges::ToValues< I >::start ( void   )  [inline, protected]

Initialize iterator.

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

template<class I>
void Gecode::Iter::Ranges::ToValues< I >::init ( I &  i  )  [inline]

Initialize with values from range iterator i.

Definition at line 107 of file ranges-values.hpp.

template<class I >
bool Gecode::Iter::Ranges::ToValues< I >::operator() ( void   )  const [inline]

Test whether iterator is still at a value or done.

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

template<class I >
void Gecode::Iter::Ranges::ToValues< I >::operator++ ( void   )  [inline]

Move iterator to next value (if possible).

Definition at line 121 of file ranges-values.hpp.

template<class I >
int Gecode::Iter::Ranges::ToValues< I >::val ( void   )  const [inline]

Return current value.

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


Member Data Documentation

template<class I>
I Gecode::Iter::Ranges::ToValues< I >::i [protected]

Range iterator used.

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

template<class I>
int Gecode::Iter::Ranges::ToValues< I >::cur [protected]

Current value.

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

template<class I>
int Gecode::Iter::Ranges::ToValues< I >::max [protected]

End of current range.

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


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