Checks whether the information is already loaded.
| 1014 | |
| 1015 | ///Checks whether the information is already loaded. |
| 1016 | ParsingEnvironmentFile* findInformation(uint topContextIndex) |
| 1017 | { |
| 1018 | QMutexLocker lock(&m_chainsMutex); |
| 1019 | QHash<uint, ParsingEnvironmentFilePointer>::iterator it = m_indexEnvironmentInformations.find(topContextIndex); |
| 1020 | if (it != m_indexEnvironmentInformations.end()) |
| 1021 | return (*it).data(); |
| 1022 | return nullptr; |
| 1023 | } |
| 1024 | |
| 1025 | ///Loads/gets the environment-information for the given top-context index, or returns zero if none exists |
| 1026 | ///@warning m_chainsMutex should NOT be locked when this is called, because it triggers I/O |
no test coverage detected