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

Method post

gecode/int/arithmetic/max.hpp:79–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77
78 template<class View>
79 ExecStatus
80 MaxBnd<View>::post(Home home, View x0, View x1, View x2) {
81 GECODE_ME_CHECK(x2.gq(home,std::max(x0.min(),x1.min())));
82 GECODE_ME_CHECK(x2.lq(home,std::max(x0.max(),x1.max())));
83 if (x0 == x1)
84 return Rel::EqBnd<View,View>::post(home,x0,x2);
85 if (x0 == x2)
86 return Rel::Lq<View,View>::post(home,x1,x2);
87 if (x1 == x2)
88 return Rel::Lq<View,View>::post(home,x0,x2);
89 (void) new (home) MaxBnd<View>(home,x0,x1,x2);
90 return ES_OK;
91 }
92
93 template<class View>
94 forceinline

Callers

nothing calls this directly

Calls 9

maxFunction · 0.50
postFunction · 0.50
gqMethod · 0.45
minMethod · 0.45
lqMethod · 0.45
maxMethod · 0.45
sizeMethod · 0.45
uniqueMethod · 0.45
sameMethod · 0.45

Tested by

no test coverage detected