Generated on Sat Jun 2 2018 07:17:44 for Gecode by doxygen 1.8.13
common.hpp File Reference

Go to the source code of this file.

Namespaces

 Gecode
 Gecode toplevel namespace
 
 Gecode::Set
 Finite integer sets.
 
 Gecode::Set::Rel
 Standard set relation propagators.
 

Macros

#define GECODE_SET_ME_CHECK_VAL(p, f)
 
#define GECODE_SET_ME_CHECK_VAL_B(modified, tell, f)
 

Functions

template<class VX , class VY >
bool Gecode::Set::Rel::same (VX c, VY y)
 Test whether two views are in fact the same. More...
 
template<>
bool Gecode::Set::Rel::same (SetView x, SetView y)
 
bool Gecode::Set::Rel::subsumesME (ModEvent me0, ModEvent me1, ModEvent me2, ModEvent me)
 
bool Gecode::Set::Rel::subsumesME (ModEvent me0, ModEvent me1, ModEvent me)
 
bool Gecode::Set::Rel::subsumesME (ModEvent me0, ModEvent me)
 
bool Gecode::Set::Rel::testSetEventLB (ModEvent me0, ModEvent me1, ModEvent me2)
 
bool Gecode::Set::Rel::testSetEventUB (ModEvent me0, ModEvent me1, ModEvent me2)
 
bool Gecode::Set::Rel::testSetEventAnyB (ModEvent me0, ModEvent me1, ModEvent me2)
 
bool Gecode::Set::Rel::testSetEventCard (ModEvent me0, ModEvent me1, ModEvent me2)
 
bool Gecode::Set::Rel::testSetEventLB (ModEvent me0, ModEvent me1)
 
bool Gecode::Set::Rel::testSetEventUB (ModEvent me0, ModEvent me1)
 
bool Gecode::Set::Rel::testSetEventAnyB (ModEvent me0, ModEvent me1)
 
bool Gecode::Set::Rel::testSetEventCard (ModEvent me0, ModEvent me1)
 
bool Gecode::Set::Rel::testSetEventLB (ModEvent me0)
 
bool Gecode::Set::Rel::testSetEventUB (ModEvent me0)
 
bool Gecode::Set::Rel::testSetEventAnyB (ModEvent me0)
 
bool Gecode::Set::Rel::testSetEventCard (ModEvent me0)
 

Macro Definition Documentation

◆ GECODE_SET_ME_CHECK_VAL

#define GECODE_SET_ME_CHECK_VAL (   p,
 
)
Value:
{ \
ModEvent __me__ ## __LINE__ = (p); \
if (me_failed(__me__ ## __LINE__)) return ES_FAILED; \
if (ME_GEN_ASSIGNED==(__me__ ## __LINE__))f=true; }
const ModEvent ME_GEN_ASSIGNED
Generic modification event: variable is assigned a value.
Definition: core.hpp:69
int p
Number of positive literals for node type.
Definition: bool-expr.cpp:232
Execution has resulted in failure.
Definition: core.hpp:473
bool me_failed(ModEvent me)
Check whether modification event me is failed.
Definition: modevent.hpp:54

Definition at line 40 of file common.hpp.

◆ GECODE_SET_ME_CHECK_VAL_B

#define GECODE_SET_ME_CHECK_VAL_B (   modified,
  tell,
 
)
Value:
{ \
ModEvent me = (tell); \
modified |= me_modified(me); \
if (ME_GEN_ASSIGNED==(me))f=true; \
GECODE_ME_CHECK(me); \
}
const ModEvent ME_GEN_ASSIGNED
Generic modification event: variable is assigned a value.
Definition: core.hpp:69
bool me_modified(ModEvent me)
Check whether modification event me describes variable modification.
Definition: modevent.hpp:59

Definition at line 45 of file common.hpp.