Base-class for ternary linear propagators. More...
#include <linear.hh>
Public Member Functions | |
virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
Cost function (defined as low ternary) More... | |
virtual size_t | dispose (Space &home) |
Delete propagator and return its size. More... | |
![]() | |
virtual ExecStatus | propagate (Space &home, const ModEventDelta &med)=0 |
Propagation function. More... | |
ModEventDelta | modeventdelta (void) const |
Return the modification event delta. More... | |
virtual ExecStatus | advise (Space &home, Advisor &a, const Delta &d) |
Advise function. More... | |
double | afc (const Space &home) const |
Return the accumlated failure count. More... | |
![]() | |
virtual Actor * | copy (Space &home, bool share)=0 |
Create copy. More... | |
Protected Member Functions | |
LinTer (Space &home, bool share, LinTer &p) | |
Constructor for cloning p. More... | |
LinTer (Home home, A x0, B x1, C x2, Val c) | |
Constructor for creation. More... | |
LinTer (Space &home, bool share, Propagator &p, A x0, B x1, C x2, Val c) | |
Constructor for rewriting p during cloning. More... | |
![]() | |
Propagator (Home home) | |
Constructor for posting. More... | |
Propagator (Space &home, bool share, Propagator &p) | |
Constructor for cloning p. More... | |
Propagator * | fwd (void) const |
Return forwarding pointer during copying. More... | |
Protected Attributes | |
A | x0 |
View of type A. More... | |
B | x1 |
View of type B. More... | |
C | x2 |
View of type C. More... | |
Val | c |
Value of type Val. More... | |
Additional Inherited Members | |
![]() | |
static void * | operator new (size_t s, Space &home) |
Allocate memory from space. More... | |
static void | operator delete (void *p, Space &home) |
No-op for exceptions. More... | |
Base-class for ternary linear propagators.
The type Val can be either long
long int or int
, defining the numerical precision during propagation. The types A, B, and C give the types of the views.
The propagation condition pc refers to all three views.
|
inlineprotected |
Constructor for cloning p.
Definition at line 55 of file int-ter.hpp.
|
inlineprotected |
Constructor for creation.
Definition at line 46 of file int-ter.hpp.
|
inlineprotected |
Constructor for rewriting p during cloning.
Definition at line 65 of file int-ter.hpp.
|
virtual |
Cost function (defined as low ternary)
Implements Gecode::Propagator.
Definition at line 75 of file int-ter.hpp.
|
inlinevirtual |
Delete propagator and return its size.
Reimplemented from Gecode::Actor.
Definition at line 81 of file int-ter.hpp.
|
protected |
|
protected |
|
protected |
|
protected |