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

Method findChild

src/IECore/StreamIndexedIO.cpp:825–838  ·  view source on GitHub ↗

This function is not thread-safe and Index::lockDirectory must be used in read-only access

Source from the content-addressed store, hash-verified

823
824 // This function is not thread-safe and Index::lockDirectory must be used in read-only access
825 inline ChildMap::iterator findChild( IndexedIO::EntryID name )
826 {
827 sortChildren();
828 NodeBase search(NodeBase::Base, name);
829 ChildMap::iterator it = std::lower_bound(m_children.begin(), m_children.end(), &search, NodeBase::compareNames );
830 if ( it != m_children.end() )
831 {
832 if ( (*it)->name() != name )
833 {
834 return m_children.end();
835 }
836 }
837 return it;
838 }
839
840 /// registers a child node in this node
841 void registerChild( NodeBase* c );

Callers 5

hasChildMethod · 0.80
directoryChildMethod · 0.80
dataChildInfoMethod · 0.80
removeChildMethod · 0.80
entryMethod · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected