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

Method BElementExpr

gecode/minimodel/bool-expr.cpp:667–671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665 };
666
667 BElementExpr::BElementExpr(const BoolVarArgs& b, const LinIntExpr& idx)
668 : a(static_cast<BoolExpr*>(heap.ralloc(sizeof(BoolExpr)*b.size()))), n(b.size()), idx(idx) {
669 for (int i=b.size(); i--;)
670 new (&a[i]) BoolExpr(b[i]);
671 }
672
673 BElementExpr::~BElementExpr(void) {
674 heap.free<BoolExpr>(a,n);

Callers

nothing calls this directly

Calls 2

rallocMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected