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

Range iterator for mapping ranges. More...

#include <ranges-map.hpp>

List of all members.

Constructors and initialization

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

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 mapping ranges.

If strict is true, then mapped ranges are not allowed to be adjacent or overlap.


Constructor & Destructor Documentation

Gecode::Iter::Ranges::Map::Map ( void  )

Default constructor.

Gecode::Iter::Ranges::Map::Map ( I &  i)

Initialize with ranges from i.

Gecode::Iter::Ranges::Map::Map ( I &  i,
const M &  m 
)

Initialize with ranges from i and map m.


Member Function Documentation

void Gecode::Iter::Ranges::Map::init ( I &  i)

Initialize with ranges from i.

void Gecode::Iter::Ranges::Map::init ( I &  i,
const M &  m 
)

Initialize with ranges from i and map m.

bool Gecode::Iter::Ranges::Map::operator() ( void  ) const

Test whether iterator is still at a range or done.

void Gecode::Iter::Ranges::Map::operator++ ( void  )

Move iterator to next range (if possible)

int Gecode::Iter::Ranges::Map::min ( void  ) const

Return smallest value of range.

int Gecode::Iter::Ranges::Map::max ( void  ) const

Return largest value of range.

unsigned int Gecode::Iter::Ranges::Map::width ( void  ) const

Return width of range (distance between minimum and maximum)


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