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

Method commit

gecode/set/branch/val-commit.hpp:48–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 ValCommitInc::ValCommitInc(Space& home, ValCommitInc& vc)
47 : ValCommit<SetView,int>(home,vc) {}
48 forceinline ModEvent
49 ValCommitInc::commit(Space& home, unsigned int a, SetView x, int, int n) {
50 return (a == 0) ? x.include(home,n) : x.exclude(home,n);
51 }
52 forceinline NGL*
53 ValCommitInc::ngl(Space& home, unsigned int a, SetView x, int n) const {
54 if (a == 0)

Callers 1

valselcommitFunction · 0.45

Calls 2

includeMethod · 0.45
excludeMethod · 0.45

Tested by

no test coverage detected