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

Method Create

test/int/bool.cpp:490–532  ·  view source on GitHub ↗

Perform creation and registration

Source from the content-addressed store, hash-verified

488 public:
489 /// Perform creation and registration
490 Create(void) {
491 using namespace Gecode;
492 for (BoolOpTypes bots; bots(); ++bots) {
493 (void) new BinXYZ(bots.bot());
494 (void) new BinXXY(bots.bot());
495 (void) new BinXYX(bots.bot());
496 (void) new BinXYY(bots.bot());
497 (void) new BinXXX(bots.bot());
498 (void) new BinConstXY(bots.bot(),0);
499 (void) new BinConstXY(bots.bot(),1);
500 (void) new BinConstXX(bots.bot(),0);
501 (void) new BinConstXX(bots.bot(),1);
502 (void) new Nary(bots.bot(),2);
503 (void) new Nary(bots.bot(),6);
504 (void) new Nary(bots.bot(),10);
505 (void) new NaryShared(bots.bot(),2);
506 (void) new NaryShared(bots.bot(),6);
507 (void) new NaryShared(bots.bot(),10);
508 (void) new NaryConst(bots.bot(),2,0);
509 (void) new NaryConst(bots.bot(),6,0);
510 (void) new NaryConst(bots.bot(),10,0);
511 (void) new NaryConst(bots.bot(),2,1);
512 (void) new NaryConst(bots.bot(),6,1);
513 (void) new NaryConst(bots.bot(),10,1);
514 if ((bots.bot() == BOT_AND) || (bots.bot() == BOT_OR)) {
515 (void) new ClauseXYZ(bots.bot(),2);
516 (void) new ClauseXYZ(bots.bot(),6);
517 (void) new ClauseXYZ(bots.bot(),10);
518 (void) new ClauseXXYYX(bots.bot(),2);
519 (void) new ClauseXXYYX(bots.bot(),6);
520 (void) new ClauseXXYYX(bots.bot(),10);
521 (void) new ClauseXXY(bots.bot(),2);
522 (void) new ClauseXXY(bots.bot(),6);
523 (void) new ClauseXXY(bots.bot(),10);
524 (void) new ClauseConst(bots.bot(),2,0);
525 (void) new ClauseConst(bots.bot(),6,0);
526 (void) new ClauseConst(bots.bot(),10,0);
527 (void) new ClauseConst(bots.bot(),2,1);
528 (void) new ClauseConst(bots.bot(),6,1);
529 (void) new ClauseConst(bots.bot(),10,1);
530 }
531 }
532 }
533 };
534
535 Create c;

Callers

nothing calls this directly

Calls 1

botMethod · 0.80

Tested by

no test coverage detected