This function is not thread-safe and Index::lockDirectory must be used in read-only access
| 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 ); |
no test coverage detected