ionFinder/src/peptide.cpp
void PeptideNamespace::Peptide::printFragments(std::ostream& out,
        bool printHeader, bool printFoundIntensity) const
{
	assert(out);

	if(printHeader) {
        out << "index" << OUT_DELIM << "label" << OUT_DELIM << "mz";
        if(printFoundIntensity)
            out << OUT_DELIM << "foundIntensity";
        out << NEW_LINE;
    }
	size_t len = fragments.size();
	for(size_t i = 0; i < len; i++) {
        out << i << OUT_DELIM <<
            fragments[i].getLabel() <<
            OUT_DELIM << fragments[i].getMZ();
            if(printFoundIntensity)
                out << OUT_DELIM << fragments[i].getFoundIntensity();
        out << NEW_LINE;
    }
}
/**
 Prints peptide fragments and calculated MZs to out.
 For debugging
 \param out stream to print to.
 \param printHeader Should a header be printed?
 \param printFoundIntensity Should the intensity for the fragment be printed?
 */
Prints peptide fragments and calculated MZs to out.
For debugging
\param out stream to print to.
\param printHeader Should a header be printed.
Prints peptide fragments and calculated MZs to out . For debugging \ param out stream to print to . \ param printHeader Should a header be printed .
void PeptideNamespace::Peptide::printFragments(std::ostream& out,
        bool printHeader, bool printFoundIntensity) const
{
	assert(out);
	if(printHeader) {
        out << "index" << OUT_DELIM << "label" << OUT_DELIM << "mz";
        if(printFoundIntensity)
            out << OUT_DELIM << "foundIntensity";
        out << NEW_LINE;
    }
	size_t len = fragments.size();
	for(size_t i = 0; i < len; i++) {
        out << i << OUT_DELIM <<
            fragments[i].getLabel() <<
            OUT_DELIM << fragments[i].getMZ();
            if(printFoundIntensity)
                out << OUT_DELIM << fragments[i].getFoundIntensity();
        out << NEW_LINE;
    }
}
void PeptideNamespace :: Peptide :: printFragments ( std :: ostream & out , bool printHeader , bool printFoundIntensity ) const { assert ( out ) ; if ( printHeader ) { out << " " << OUT_DELIM << " " << OUT_DELIM << " " ; if ( printFoundIntensity ) out << OUT_DELIM << " " ; out << NEW_LINE ; } size_t len = fragments . size ( ) ; for ( size_t i = 0 ; i < len ; i ++ ) { out << i << OUT_DELIM << fragments [ i ] . getLabel ( ) << OUT_DELIM << fragments [ i ] . getMZ ( ) ; if ( printFoundIntensity ) out << OUT_DELIM << fragments [ i ] . getFoundIntensity ( ) ; out << NEW_LINE ; } }
Prints peptide fragments and calculated MZs to out.
Prints peptide fragments and calculated MZs to out .