Generated on Mon Aug 25 11:35:49 2008 for Gecode by doxygen 1.5.6

Gecode::Int::SupportValues< View > Class Template Reference
[Integer propagators]

#include <support-values.hh>

List of all members.


Detailed Description

template<class View>
class Gecode::Int::SupportValues< View >

Support value iterator and recorder.

Requires

Definition at line 52 of file support-values.hh.


Iteration control

void reset (void)
 Reset iterator.
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.

Support control

void support (void)
 Mark current (iterator) value as supported.
bool support (int n)
 Mark n as supported if possible.
bool support (double n)
 Mark n as supported if possible.
ModEvent tell (Space *home)
 Remove all unsupported values.

Public Member Functions

 SupportValues (View x)
 Initialize for view x.
 ~SupportValues (void)
 Destructor.

Constructor & Destructor Documentation

template<class View>
Gecode::Int::SupportValues< View >::SupportValues ( View  x  )  [inline]

Initialize for view x.

Definition at line 63 of file support-values.icc.

template<class View>
Gecode::Int::SupportValues< View >::~SupportValues ( void   )  [inline]

Destructor.

Definition at line 85 of file support-values.icc.


Member Function Documentation

template<class View>
void Gecode::Int::SupportValues< View >::reset ( void   )  [inline]

Reset iterator.

Definition at line 56 of file support-values.icc.

template<class View>
bool Gecode::Int::SupportValues< View >::operator() ( void   )  const [inline]

Test whether iterator is still at a value or done.

Definition at line 102 of file support-values.icc.

template<class View>
void Gecode::Int::SupportValues< View >::operator++ ( void   )  [inline]

Move iterator to next value (if possible).

Definition at line 92 of file support-values.icc.

template<class View>
int Gecode::Int::SupportValues< View >::val ( void   )  const [inline]

Return current value.

Definition at line 108 of file support-values.icc.

template<class View>
void Gecode::Int::SupportValues< View >::support ( void   )  [inline]

Mark current (iterator) value as supported.

Definition at line 114 of file support-values.icc.

template<class View>
bool Gecode::Int::SupportValues< View >::support ( int  n  )  [inline]

Mark n as supported if possible.

Definition at line 143 of file support-values.icc.

template<class View>
bool Gecode::Int::SupportValues< View >::support ( double  n  )  [inline]

Mark n as supported if possible.

Definition at line 151 of file support-values.icc.

template<class View>
ModEvent Gecode::Int::SupportValues< View >::tell ( Space home  )  [inline]

Remove all unsupported values.

Definition at line 195 of file support-values.icc.


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