|
template<class Char , class Traits > |
std::basic_ostream< Char, Traits > & | operator<< (std::basic_ostream< Char, Traits > &os, const IntScaleView &x) |
| Print integer-precision integer scale view. More...
|
|
template<class Char , class Traits > |
std::basic_ostream< Char, Traits > & | operator<< (std::basic_ostream< Char, Traits > &os, const LLongScaleView &x) |
| Print long long-precision integer scale view. More...
|
|
template<class Val , class UnsVal > |
bool | operator== (const ScaleView< Val, UnsVal > &x, const ScaleView< Val, UnsVal > &y) |
| Test whether views x and y are the same. More...
|
|
template<class Val , class UnsVal > |
bool | operator!= (const ScaleView< Val, UnsVal > &x, const ScaleView< Val, UnsVal > &y) |
| Test whether views x and y are not the same. More...
|
|
|
typedef IntView ::VarImpType | VarImpType |
| The variable implementation type belonging to the View. More...
|
|
typedef IntView ::VarType | VarType |
| The variable type belonging to the View. More...
|
|
| DerivedView (const IntView &y) |
| Initialize with view y. More...
|
|
VarImpType * | varimp (void) const |
| Return variable implementation of view. More...
|
|
IntView | base (void) const |
| Return view from which this view is derived. More...
|
|
unsigned int | degree (void) const |
| Return degree (number of subscribed propagators) More...
|
|
double | afc (void) const |
| Return accumulated failure count. More...
|
|
bool | assigned (void) const |
| Test whether view is assigned. More...
|
|
void | subscribe (Space &home, Propagator &p, PropCond pc, bool schedule=true) |
| Subscribe propagator p with propagation condition pc to view. More...
|
|
void | subscribe (Space &home, Advisor &a, bool fail=false) |
| Subscribe advisor a to view. More...
|
|
void | cancel (Space &home, Propagator &p, PropCond pc) |
| Cancel subscription of propagator p with propagation condition pc to view. More...
|
|
void | cancel (Space &home, Advisor &a, bool fail=false) |
| Cancel subscription of advisor a. More...
|
|
void | reschedule (Space &home, Propagator &p, PropCond pc) |
| Re-schedule propagator p with propagation condition pc. More...
|
|
void | update (Space &home, DerivedView< IntView > &y) |
| Update this view to be a clone of view y. More...
|
|
bool | operator< (const DerivedView< IntView > &y) const |
| Whether this view comes before view y (arbitray order) More...
|
|
static bool | varderived (void) |
| Return whether this view is derived from a VarImpView. More...
|
|
static void | schedule (Space &home, Propagator &p, ModEvent me) |
| Schedule propagator p with modification event me. More...
|
|
static ModEvent | me (const ModEventDelta &med) |
| Return modification event for view type in med. More...
|
|
static ModEventDelta | med (ModEvent) |
| Translate modification event me to modification event delta for view. More...
|
|
static ModEvent | modevent (const Delta &d) |
| Return modification event. More...
|
|
| DerivedView (void) |
| Default constructor. More...
|
|
template<class Val, class UnsVal>
class Gecode::Int::ScaleView< Val, UnsVal >
Scale integer view (template)
A scale integer view
for an integer view
and a non-negative integer
provides operations such that
behaves as
.
The precision of a scale integer view is defined by the value types Val and UnsVal. Val can be either int
or long
long
int
where UnsVal must be the unsigned variant of Val. The range which is allowed for the two types is defined by the values in Gecode::Limits.
Note that scale integer views currently do not provide operations for updating domains by range iterators.
The template is not to be used directly (as it is very clumsy). Use the following instead:
- IntScaleView for scale views with integer precision
- LLongScaleView for scale views with long long precision
Definition at line 704 of file view.hpp.