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

Method removeChild

src/IECore/StreamIndexedIO.cpp:1527–1544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1525}
1526
1527void StreamIndexedIO::Node::removeChild( const IndexedIO::EntryID &childName, bool throwException )
1528{
1529 DirectoryNode::ChildMap::iterator it = m_node->findChild( childName );
1530 if ( it == m_node->children().end() )
1531 {
1532 if (throwException)
1533 {
1534 throw IOException( "StreamIndexedIO::Node::removeChild: Entry not found '" + childName.value() + "'" );
1535 }
1536 return;
1537 }
1538
1539 NodeBase *child = *it;
1540
1541 m_idx->deallocateWalk(child);
1542
1543 m_node->children().erase( it );
1544}
1545
1546///////////////////////////////////////////////
1547//

Callers 2

removeAllMethod · 0.45
removeMethod · 0.45

Calls 6

IOExceptionFunction · 0.85
findChildMethod · 0.80
deallocateWalkMethod · 0.80
endMethod · 0.45
valueMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected