void BoxList::catenate (BoxList& blist) { BL_ASSERT(ixType() == blist.ixType()); lbox.splice(lbox.end(), blist.lbox); BL_ASSERT(blist.isEmpty()); }
bool BoxList::contains (const Box& b) const { if (isEmpty()) return false; BL_ASSERT(ixType() == b.ixType()); BoxList bnew = BoxLib::complementIn(b,*this); return bnew.isEmpty(); }
bool BoxList::contains (const BoxList& bl) const { if (isEmpty() || bl.isEmpty()) return false; BL_ASSERT(ixType() == bl.ixType()); if (!minimalBox().contains(bl.minimalBox())) return false; BoxArray ba(*this); for (const_iterator bli = bl.begin(), End = bl.end(); bli != End; ++bli) if (!ba.contains(*bli)) return false; return true; }