Set for support information More...
#include <int-dom.hpp>
Classes | |
class | ResultIter |
Support-based iterator: iterates values to be removed. More... | |
Public Member Functions | |
SupportSet (void) | |
Default constructor. | |
void | init (Region &r, unsigned int n) |
Initialize support set with cardinality n. | |
void | support (unsigned int i) |
Record that there is support at position i. | |
bool | supported (unsigned int i) const |
Check whether position. | |
ModEvent | tell (Space &home, IntView &x) const |
Perform tell according to recorded support information on. |
Set for support information
Records supported positions of values such that with iteration the supported values can be reconstructed.
Gecode::Int::Linear::SupportSet::SupportSet | ( | void | ) | [inline] |
Default constructor.
Definition at line 167 of file int-dom.hpp.
void Gecode::Int::Linear::SupportSet::init | ( | Region & | r, |
unsigned int | n | ||
) | [inline] |
Initialize support set with cardinality n.
Definition at line 169 of file int-dom.hpp.
void Gecode::Int::Linear::SupportSet::support | ( | unsigned int | i | ) | [inline] |
Record that there is support at position i.
Definition at line 173 of file int-dom.hpp.
bool Gecode::Int::Linear::SupportSet::supported | ( | unsigned int | i | ) | const [inline] |
Perform tell according to recorded support information on.
Definition at line 197 of file int-dom.hpp.