| 1274 | } |
| 1275 | |
| 1276 | void DirectoryNode::setSubIndexOffset( uint64_t offset ) |
| 1277 | { |
| 1278 | m_offset = offset; |
| 1279 | |
| 1280 | // mark this node as a saved in a subindex |
| 1281 | m_subindex = DirectoryNode::SavedSubIndex; |
| 1282 | |
| 1283 | // dealloc all the child nodes |
| 1284 | for (DirectoryNode::ChildMap::const_iterator it = m_children.begin(); it != m_children.end(); ++it) |
| 1285 | { |
| 1286 | NodeBase::destroy( *it ); |
| 1287 | } |
| 1288 | |
| 1289 | // remove all children from this node |
| 1290 | m_children.clear(); |
| 1291 | } |
| 1292 | |
| 1293 | void DirectoryNode::recoveredSubIndex() |
| 1294 | { |
no test coverage detected