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

Value iterator for mapping values of a value iterator. More...

#include <values-map.hpp>

List of all members.

Protected Attributes

i
 Input iterator.
m
 Mapping object.

Constructors and initialization

 Map (void)
 Default constructor.
 Map (I &i)
 Initialize with values from i.
 Map (I &i, const M &m)
 Initialize with values from i and map m.
void init (I &i)
 Initialize with values from i.
void init (I &i, const M &m)
 Initialize with values from i and map m.

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 mapping values of a value iterator.

If strict is true, the values obtained by mapping must be strictly increasing (that is, no duplicates).


Constructor & Destructor Documentation

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

Default constructor.

Definition at line 88 of file values-map.hpp.

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

Initialize with values from i.

Definition at line 92 of file values-map.hpp.

Gecode::Iter::Values::Map::Map ( I &  i,
const M &  m 
) [inline]

Initialize with values from i and map m.

Definition at line 96 of file values-map.hpp.


Member Function Documentation

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

Initialize with values from i.

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

void Gecode::Iter::Values::Map::init ( I &  i,
const M &  m 
) [inline]

Initialize with values from i and map m.

Definition at line 106 of file values-map.hpp.

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

Test whether iterator is still at a value or done.

Definition at line 124 of file values-map.hpp.

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

Move iterator to next value (if possible)

Definition at line 112 of file values-map.hpp.

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

Return current value.

Definition at line 130 of file values-map.hpp.


Member Data Documentation

Input iterator.

Definition at line 52 of file values-map.hpp.

Mapping object.

Definition at line 54 of file values-map.hpp.


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