@brief Fast search for spectrum range end (returns the past-the-end iterator) Returns the first scan which has higher (>) RT than @p rt. @note Make sure the spectra are sorted with respect to retention time! Otherwise the result is undefined. */
| 167 | @note Make sure the spectra are sorted with respect to retention time! Otherwise the result is undefined. |
| 168 | */ |
| 169 | MSExperiment::ConstIterator MSExperiment::RTEnd(CoordinateType rt) const |
| 170 | { |
| 171 | SpectrumType s; |
| 172 | s.setRT(rt); |
| 173 | return upper_bound(spectra_.begin(), spectra_.end(), s, SpectrumType::RTLess()); |
| 174 | } |
| 175 | |
| 176 | /** |
| 177 | @brief Fast search for spectrum range begin |
no test coverage detected