MCPcopy Create free account
hub / github.com/ImageEngine/cortex / setSubIndexOffset

Method setSubIndexOffset

src/IECore/StreamIndexedIO.cpp:1276–1291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1274}
1275
1276void 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
1293void DirectoryNode::recoveredSubIndex()
1294{

Callers 1

commitNodeToSubIndexMethod · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected