ionFinder/src/peptide.cpp
size_t PeptideNamespace::Peptide::nModsInSpan(size_t beg, size_t end) const
{
	size_t ret = 0;
	for(auto it = modLocs.begin(); it != modLocs.end(); ++it)
		if(utils::inSpan(beg, end, *it))
			ret++;
	return ret;
}
/**
 * Count the number of modifications in the range between \p beg and \p end.
 * @param beg Beginning index.
 * @param end Ending index.
 * @return Number of modifications in range.
 */
Count the number of modifications in the range between \p beg and \p end.
@param beg Beginning index.
@param end Ending index.
@return Number of modifications in range.
Count the number of modifications in the range between \ p beg and \ p end . @param beg Beginning index . @param end Ending index . @return Number of modifications in range .
size_t PeptideNamespace::Peptide::nModsInSpan(size_t beg, size_t end) const
{
	size_t ret = 0;
	for(auto it = modLocs.begin(); it != modLocs.end(); ++it)
		if(utils::inSpan(beg, end, *it))
			ret++;
	return ret;
}
size_t PeptideNamespace :: Peptide :: nModsInSpan ( size_t beg , size_t end ) const { size_t ret = 0 ; for ( auto it = modLocs . begin ( ) ; it != modLocs . end ( ) ; ++ it ) if ( utils :: inSpan ( beg , end , * it ) ) ret ++ ; return ret ; }
Count the number of modifications in the range between \p beg and \p end.
Count the number of modifications in the range between \ p beg and \ p end .