Generated on Sat Feb 7 2015 02:01:50 for Gecode by doxygen 1.8.9.1
Gecode::Iter::Ranges::Map< I, M, true > Class Template Reference

Specialized mapping of ranges for strict maps. More...

#include <ranges-map.hpp>

Protected Attributes

i
 Input range iterator. More...
 
m
 Map object. More...
 

Constructors and initialization

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

Iteration control

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

Range access

int min (void) const
 Return smallest value of range. More...
 
int max (void) const
 Return largest value of range. More...
 
unsigned int width (void) const
 Return width of range (distance between minimum and maximum) More...
 

Detailed Description

template<class I, class M>
class Gecode::Iter::Ranges::Map< I, M, true >

Specialized mapping of ranges for strict maps.

Definition at line 118 of file ranges-map.hpp.

Constructor & Destructor Documentation

template<class I , class M >
Gecode::Iter::Ranges::Map< I, M, true >::Map ( void  )
inline

Default constructor.

Definition at line 210 of file ranges-map.hpp.

template<class I , class M >
Gecode::Iter::Ranges::Map< I, M, true >::Map ( I &  i)
inline

Initialize with ranges from i.

Definition at line 225 of file ranges-map.hpp.

template<class I , class M >
Gecode::Iter::Ranges::Map< I, M, true >::Map ( I &  i,
const M &  m 
)
inline

Initialize with ranges from i and map m.

Definition at line 228 of file ranges-map.hpp.

Member Function Documentation

template<class I , class M >
void Gecode::Iter::Ranges::Map< I, M, true >::init ( I &  i)
inline

Initialize with ranges from i.

Definition at line 214 of file ranges-map.hpp.

template<class I , class M >
void Gecode::Iter::Ranges::Map< I, M, true >::init ( I &  i,
const M &  m 
)
inline

Initialize with ranges from i and map m.

Definition at line 219 of file ranges-map.hpp.

template<class I , class M >
bool Gecode::Iter::Ranges::Map< I, M, true >::operator() ( void  ) const
inline

Test whether iterator is still at a range or done.

Definition at line 232 of file ranges-map.hpp.

template<class I , class M >
void Gecode::Iter::Ranges::Map< I, M, true >::operator++ ( void  )
inline

Move iterator to next range (if possible)

Definition at line 237 of file ranges-map.hpp.

template<class I , class M >
int Gecode::Iter::Ranges::Map< I, M, true >::min ( void  ) const
inline

Return smallest value of range.

Definition at line 243 of file ranges-map.hpp.

template<class I , class M >
int Gecode::Iter::Ranges::Map< I, M, true >::max ( void  ) const
inline

Return largest value of range.

Definition at line 248 of file ranges-map.hpp.

template<class I , class M >
unsigned int Gecode::Iter::Ranges::Map< I, M, true >::width ( void  ) const
inline

Return width of range (distance between minimum and maximum)

Definition at line 253 of file ranges-map.hpp.

Member Data Documentation

template<class I , class M >
I Gecode::Iter::Ranges::Map< I, M, true >::i
protected

Input range iterator.

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

template<class I , class M >
M Gecode::Iter::Ranges::Map< I, M, true >::m
protected

Map object.

Definition at line 123 of file ranges-map.hpp.


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