Gecode::Int::SupportValues< View > Class Template Reference
[Integer propagators]
#include <support-values.hh>
Detailed Description
template<class View>
class Gecode::Int::SupportValues< View >
Support value iterator and recorder.
Requires
#include "gecode/int/support-values.hh"
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] |
template<class View>
Gecode::Int::SupportValues< View >::~SupportValues | ( | void | ) | [inline] |
Member Function Documentation
template<class View>
void Gecode::Int::SupportValues< View >::reset | ( | void | ) | [inline] |
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] |
template<class View>
int Gecode::Int::SupportValues< View >::val | ( | void | ) | const [inline] |
template<class View>
void Gecode::Int::SupportValues< View >::support | ( | void | ) | [inline] |
template<class View>
bool Gecode::Int::SupportValues< View >::support | ( | int | n | ) | [inline] |
template<class View>
bool Gecode::Int::SupportValues< View >::support | ( | double | n | ) | [inline] |
template<class View>
ModEvent Gecode::Int::SupportValues< View >::tell | ( | Space * | home | ) | [inline] |
The documentation for this class was generated from the following files:
- gecode/int/support-values.hh (Revision: 7307)
- gecode/int/support-values.icc (Revision: 7518)