ionFinder/src/peptide.cpp
double PeptideNamespace::calcMass(PeptideNamespace::PepIonIt begin, PeptideNamespace::PepIonIt end)
{
	double ret = 0;
	for(auto it = begin; it != end; ++it)
		ret += it->getTotalMass();
	return ret;
}
/**
 Returns sum of masss of amino acids in vec.

 \param begin iterator to start of vec
 \param end iterator to end of vec
 
 \return mass of of peptide
*/
Returns sum of masss of amino acids in vec.
\param begin iterator to start of vec
\param end iterator to end of vec

\return mass of of peptide
Returns sum of masss of amino acids in vec . \ param begin iterator to start of vec \ param end iterator to end of vec \ return mass of of peptide
double PeptideNamespace::calcMass(PeptideNamespace::PepIonIt begin, PeptideNamespace::PepIonIt end)
{
	double ret = 0;
	for(auto it = begin; it != end; ++it)
		ret += it->getTotalMass();
	return ret;
}
double PeptideNamespace :: calcMass ( PeptideNamespace :: PepIonIt begin , PeptideNamespace :: PepIonIt end ) { double ret = 0 ; for ( auto it = begin ; it != end ; ++ it ) ret += it -> getTotalMass ( ) ; return ret ; }
Returns sum of masss of amino acids in vec.
Returns sum of masss of amino acids in vec .