| 314 | } |
| 315 | |
| 316 | bool IndexFileReader::GetValueByKey(Key key, Value & value) const |
| 317 | { |
| 318 | auto it = lower_bound(m_elements.begin(), m_elements.end(), key, ElementComparator()); |
| 319 | if (it != m_elements.end() && it->first == key) |
| 320 | { |
| 321 | value = it->second; |
| 322 | return true; |
| 323 | } |
| 324 | return false; |
| 325 | } |
| 326 | |
| 327 | // IndexFileWriter --------------------------------------------------------------------------------- |
| 328 | IndexFileWriter::IndexFileWriter(string const & name) : m_fileWriter(name) {} |
no test coverage detected