void unmap() { if( !ptr ) return; unmap_(); ptr = 0; size = 0; }
CFileRegion::~CFileRegion() { assert(!isReferenced()); for (auto it = children_.begin(); it != children_.end(); it = children_.begin()) { CFileRegion* child = *it; if (parent_) parent_->readopt_(child); else { child->orphan_(); delete child; } } if (parent_) orphan_(); unmap_(); }