/** * \file pappsomspp/peptide/peptidefragmentionlistbase.h * \date 10/3/2015 * \author Olivier Langella * \brief fragmentation base object */ /******************************************************************************* * Copyright (c) 2015 Olivier Langella . * * This file is part of the PAPPSOms++ library. * * PAPPSOms++ is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * PAPPSOms++ is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with PAPPSOms++. If not, see . * * Contributors: * Olivier Langella - initial API and *implementation ******************************************************************************/ #pragma once #include #include "peptidefragmention.h" #include "pappsomspp/export-import-config.h" namespace pappso { class PeptideFragmentIonListBase; typedef std::shared_ptr PeptideFragmentIonListBaseSp; class PMSPP_LIB_DECL PeptideFragmentIonListBase { using IonList = std::list; public: PeptideFragmentIonListBase(const PeptideSp &peptide, const IonList &ions); PeptideFragmentIonListBase(const PeptideFragmentIonListBase &other); virtual ~PeptideFragmentIonListBase(); PeptideFragmentIonListBaseSp makePeptideFragmentIonListBaseSp() const; const std::list &getIonList() const; unsigned int getPhosphorylationNumber() const; virtual const PeptideSp &getPeptideSp() const; const std::list getPeptideFragmentIonSp(Enums::PeptideIon ion_type) const; const PeptideFragmentIonSp &getPeptideFragmentIonSp(Enums::PeptideIon ion_type, unsigned int size) const; const PeptideFragmentIonSp &getPeptideFragmentIonSp( Enums::PeptideIon ion_type, unsigned int size, unsigned int number_of_neutral_phospho_loss) const; std::list::const_iterator begin() const; std::list::const_iterator end() const; const std::list &getPeptideFragmentIonList() const; static std::list getCIDionList(); static std::list getETDionList(); std::size_t size() const; protected: const PeptideSp msp_peptide; std::list msp_peptide_fragment_ion_list; IonList m_ionList; unsigned int m_phosphorylationNumber; static const std::list getPeptideFragmentList(const PeptideSp &peptide); }; } // namespace pappso