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

Method sortChildren

src/IECore/StreamIndexedIO.cpp:815–822  ·  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

813
814 // This function is not thread-safe and Index::lockDirectory must be used in read-only access
815 inline void sortChildren()
816 {
817 if ( !m_sortedChildren )
818 {
819 std::sort( m_children.begin(), m_children.end(), NodeBase::compareNames );
820 m_sortedChildren = true;
821 }
822 }
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 )

Callers 4

readNodeV5Method · 0.80
readNodeMethod · 0.80
readMethod · 0.80
readNodeFromSubIndexMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected