| 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); |