MCPcopy Create free account
hub / github.com/Gecode/gecode / subscribe

Method subscribe

gecode/kernel/core.hpp:4438–4451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4436
4437 template<class VIC>
4438 forceinline void
4439 VarImp<VIC>::subscribe(Space& home, Propagator& p, PropCond pc,
4440 bool assigned, ModEvent me, bool schedule) {
4441 if (assigned) {
4442 // Do not subscribe, just schedule the propagator
4443 if (schedule)
4444 VarImp<VIC>::schedule(home,p,ME_GEN_ASSIGNED);
4445 } else {
4446 enter(home,&p,pc);
4447 // Schedule propagator
4448 if (schedule && (pc != PC_GEN_ASSIGNED))
4449 VarImp<VIC>::schedule(home,p,me);
4450 }
4451 }
4452
4453 template<class VIC>
4454 forceinline void

Callers

nothing calls this directly

Calls 1

ptrjoinFunction · 0.85

Tested by

no test coverage detected