Nary Boolean less or equal propagator. More...
#include <bool.hh>
Public Member Functions | |
virtual Actor * | copy (Space &home, bool share) |
Copy propagator during cloning. | |
virtual ExecStatus | advise (Space &home, Advisor &a, const Delta &d) |
Give advice to propagator. | |
virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
Cost function (defined as low unary) | |
virtual ExecStatus | propagate (Space &home, const ModEventDelta &med) |
Perform propagation. | |
virtual size_t | dispose (Space &home) |
Delete propagator and return its size. | |
Static Public Member Functions | |
static ExecStatus | post (Home home, ViewArray< VX > &x) |
Post propagator ![]() | |
Protected Member Functions | |
NaryLq (Home home, ViewArray< VX > &x) | |
Constructor for posting. | |
NaryLq (Space &home, bool share, NaryLq< VX > &p) | |
Constructor for cloning p. | |
Protected Attributes | |
bool | run |
Whether the propagator is currently running. | |
int | n_zero |
The number of views assigned to zero in x. | |
int | n_one |
The number of views assigned to one in x. | |
Council< Advisor > | c |
The advisor council. |
Nary Boolean less or equal propagator.
Requires
#include <gecode/int/bool.hh>
Gecode::Int::Bool::NaryLq< VX >::NaryLq | ( | Home | home, |
ViewArray< VX > & | x | ||
) | [inline, protected] |
Gecode::Int::Bool::NaryLq< VX >::NaryLq | ( | Space & | home, |
bool | share, | ||
NaryLq< VX > & | p | ||
) | [inline, protected] |
Actor * Gecode::Int::Bool::NaryLq< VX >::copy | ( | Space & | home, |
bool | share | ||
) | [virtual] |
ExecStatus Gecode::Int::Bool::NaryLq< VX >::advise | ( | Space & | home, |
Advisor & | a, | ||
const Delta & | d | ||
) | [virtual] |
Give advice to propagator.
Reimplemented from Gecode::Propagator.
PropCost Gecode::Int::Bool::NaryLq< VX >::cost | ( | const Space & | home, |
const ModEventDelta & | med | ||
) | const [virtual] |
Cost function (defined as low unary)
Reimplemented from Gecode::NaryPropagator< VX, PC_BOOL_NONE >.
ExecStatus Gecode::Int::Bool::NaryLq< VX >::propagate | ( | Space & | home, |
const ModEventDelta & | med | ||
) | [virtual] |
ExecStatus Gecode::Int::Bool::NaryLq< VX >::post | ( | Home | home, |
ViewArray< VX > & | x | ||
) | [inline, static] |
size_t Gecode::Int::Bool::NaryLq< VX >::dispose | ( | Space & | home | ) | [inline, virtual] |
Delete propagator and return its size.
Reimplemented from Gecode::NaryPropagator< VX, PC_BOOL_NONE >.
bool Gecode::Int::Bool::NaryLq< VX >::run [protected] |
int Gecode::Int::Bool::NaryLq< VX >::n_zero [protected] |
int Gecode::Int::Bool::NaryLq< VX >::n_one [protected] |
Council<Advisor> Gecode::Int::Bool::NaryLq< VX >::c [protected] |