Gecode::Int::Linear::LinBin< Val, A, B, pc > Class Template Reference
Base-class for binary linear propagators. More...
#include <linear.hh>
Public Member Functions | |
virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
Cost function (defined as low binary). | |
virtual void | reschedule (Space &home) |
Schedule function. | |
virtual size_t | dispose (Space &home) |
Delete propagator and return its size. | |
Protected Member Functions | |
LinBin (Space &home, bool share, LinBin &p) | |
Constructor for cloning p. | |
LinBin (Space &home, bool share, Propagator &p, A x0, B x1, Val c) | |
Constructor for rewriting p during cloning. | |
LinBin (Home home, A x0, B x1, Val c) | |
Constructor for creation. | |
Protected Attributes | |
A | x0 |
View of type A. | |
B | x1 |
View of type B. | |
Val | c |
Value of type Val. |
Detailed Description
template<class Val, class A, class B, PropCond pc>
class Gecode::Int::Linear::LinBin< Val, A, B, pc >
Base-class for binary linear propagators.
The type Val can be either long
long int or int
, defining the numerical precision during propagation. The types A and B give the types of the views.
The propagation condition pc refers to both views.
Definition at line 69 of file linear.hh.
Constructor & Destructor Documentation
Gecode::Int::Linear::LinBin< Val, A, B, pc >::LinBin | ( | Space & | home, | |
bool | share, | |||
LinBin< Val, A, B, pc > & | p | |||
) | [inline, protected] |
Constructor for cloning p.
Definition at line 54 of file int-bin.hpp.
Gecode::Int::Linear::LinBin< Val, A, B, pc >::LinBin | ( | Space & | home, | |
bool | share, | |||
Propagator & | p, | |||
A | x0, | |||
B | x1, | |||
Val | c | |||
) | [inline, protected] |
Constructor for rewriting p during cloning.
Definition at line 62 of file int-bin.hpp.
Gecode::Int::Linear::LinBin< Val, A, B, pc >::LinBin | ( | Home | home, | |
A | x0, | |||
B | x1, | |||
Val | c | |||
) | [inline, protected] |
Constructor for creation.
Definition at line 46 of file int-bin.hpp.
Member Function Documentation
PropCost Gecode::Int::Linear::LinBin< Val, A, B, pc >::cost | ( | const Space & | home, | |
const ModEventDelta & | med | |||
) | const [inline, virtual] |
Cost function (defined as low binary).
Implements Gecode::Propagator.
Reimplemented in Gecode::Int::Linear::NqBin< Val, A, B >.
Definition at line 71 of file int-bin.hpp.
void Gecode::Int::Linear::LinBin< Val, A, B, pc >::reschedule | ( | Space & | home | ) | [inline, virtual] |
size_t Gecode::Int::Linear::LinBin< Val, A, B, pc >::dispose | ( | Space & | home | ) | [inline, virtual] |
Delete propagator and return its size.
Reimplemented from Gecode::Actor.
Definition at line 84 of file int-bin.hpp.
Member Data Documentation
A Gecode::Int::Linear::LinBin< Val, A, B, pc >::x0 [protected] |
B Gecode::Int::Linear::LinBin< Val, A, B, pc >::x1 [protected] |
Val Gecode::Int::Linear::LinBin< Val, A, B, pc >::c [protected] |
The documentation for this class was generated from the following files:
- gecode/int/linear.hh (Revision: 15137)
- gecode/int/linear/int-bin.hpp (Revision: 15137)