34namespace Gecode {
namespace Int {
namespace Count {
36 template<
class VX,
class VY,
class VZ,
bool shr>
42 template<
class VX,
class VY,
class VZ,
bool shr>
56 template<
class VX,
class VY,
class VZ,
bool shr>
61 template<
class VX,
class VY,
class VZ,
bool shr>
67 template<
class VX,
class VY,
class VZ,
bool shr>
int p
Number of positive literals for node type.
Base-class for both propagators and branchers.
Home class for posting propagators
Propagator for counting views (less or equal integer to number of equal views)
static ExecStatus post(Home home, ViewArray< VX > &x, VY y, int c)
Post propagator for .
Propagator for counting views (less or equal to number of equal views)
static ExecStatus post(Home home, ViewArray< VX > &x, VY y, VZ z, int c)
Post propagator for .
virtual Actor * copy(Space &home)
Create copy during cloning.
LqView(Space &home, LqView &p)
Constructor for cloning p.
virtual ExecStatus propagate(Space &home, const ModEventDelta &med)
Perform propagation.
Base-class for count propagators (view)
bool assigned(void) const
Test whether view is assigned.
ExecStatus ES_SUBSUMED(Propagator &p)
int ModEventDelta
Modification event deltas.
#define GECODE_ME_CHECK(me)
Check whether modification event me is failed, and forward failure.
#define GECODE_REWRITE(prop, post)
Rewrite propagator by executing post function.
#define GECODE_ES_CHECK(es)
Check whether execution status es is failed or subsumed, and forward failure or subsumption.
ExecStatus post_false(Home home, ViewArray< VX > &x, VX y)
Post that all views in x are not equal to y.
Gecode toplevel namespace
void count(Home home, const IntVarArgs &x, int n, IntRelType irt, int m, IntPropLevel ipl=IPL_DEF)
Post propagator for .
void atleast(Home home, const IntVarArgs &x, int n, int m, IntPropLevel ipl=IPL_DEF)
Post constraint .
Post propagator for SetVar SetOpType SetVar SetRelType SetVar z
Post propagator for SetVar SetOpType SetVar y
@ ES_OK
Execution is okay.
@ ES_FIX
Propagation has computed fixpoint.
@ ES_NOFIX
Propagation has not computed fixpoint.
Post propagator for SetVar x