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

Method post

gecode/float/rel/eq.hpp:49–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47
48 template<class View0, class View1>
49 ExecStatus
50 Eq<View0,View1>::post(Home home, View0 x0, View1 x1){
51 if (x0.assigned()) {
52 GECODE_ME_CHECK(x1.eq(home,x0.val()));
53 } else if (x1.assigned()) {
54 GECODE_ME_CHECK(x0.eq(home,x1.val()));
55 } else if (x0 != x1) {
56 GECODE_ME_CHECK(x0.lq(home,x1.max()));
57 GECODE_ME_CHECK(x1.lq(home,x0.max()));
58 GECODE_ME_CHECK(x0.gq(home,x1.min()));
59 GECODE_ME_CHECK(x1.gq(home,x0.min()));
60 (void) new (home) Eq<View0,View1>(home,x0,x1);
61 }
62 return ES_OK;
63 }
64
65 template<class View0, class View1>
66 forceinline

Callers

nothing calls this directly

Calls 15

postFunction · 0.50
maxFunction · 0.50
minFunction · 0.50
overlapFunction · 0.50
assignedMethod · 0.45
eqMethod · 0.45
valMethod · 0.45
lqMethod · 0.45
maxMethod · 0.45
gqMethod · 0.45
minMethod · 0.45
uniqueMethod · 0.45

Tested by

no test coverage detected