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

Method post

gecode/int/linear/bool-scale.hpp:397–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395
396 template<class SBAP, class SBAN, class VX>
397 ExecStatus
398 EqBoolScale<SBAP,SBAN,VX>::post(Home home,
399 SBAP& p, SBAN& n, VX x, int c) {
400 p.sort(); n.sort();
401 if (p.empty()) {
402 EmptyScaleBoolArray ep;
403 (void) new (home) EqBoolScale<EmptyScaleBoolArray,SBAN,VX>
404 (home,ep,n,x,c);
405 } else if (n.empty()) {
406 EmptyScaleBoolArray en;
407 (void) new (home) EqBoolScale<SBAP,EmptyScaleBoolArray,VX>
408 (home,p,en,x,c);
409 } else {
410 (void) new (home) EqBoolScale<SBAP,SBAN,VX>
411 (home,p,n,x,c);
412 }
413 return ES_OK;
414 }
415
416
417 /*

Callers

nothing calls this directly

Calls 2

sortMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected