#include <Domain.h>
Inheritance diagram for Domain:

Public Types | |
| enum | Preference { Minimum, Maximum } |
Public Member Functions | |
| Domain (Decomposition &decomposition, const vector< pair< double, double > > &intervals, double quality=1, Preference preference=Minimum) | |
| virtual void | select (vlist_type &selectable, vlist_type &selected) |
| Domain () | |
| Create an empty domain. | |
| Domain (Value &value) | |
| Create a domain with a single value. | |
| Domain (const Domain &domain) | |
| Copy constructor. | |
| virtual | ~Domain () |
| Destructor. | |
| Value & | value (id_t id) |
| Return the value with the given id. | |
| const Value & | value (id_t id) const |
| Return the value with the given id. | |
| bool | operator== (const Domain &other) const |
| virtual wostream & | print (wostream &wos) const |
Friends | |
| CSP_API wostream & | operator<< (wostream &wos, const Domain &domain) |
| Output operator. | |
|
|
|
|
||||||||||||||||||||
|
Constructor.
|
|
|
Equality operator. Note that this compares values by pointer, not by id, so they must belong to the same variable. |
|
|
Print the domain at the given stream.
Reimplemented from VariableOH. |
|
||||||||||||
|
Select the variables with the best domain size, according to the current preference.
Implements VariableOH. |
1.3.9.1