grppeptideset.h
Go to the documentation of this file.
/*******************************************************************************
* Copyright (c) 2015 Olivier Langella <Olivier.Langella@moulon.inra.fr>.
*
* 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 <http://www.gnu.org/licenses/>.
*
* Contributors:
* Olivier Langella <olivier.langella@u-psud.fr> - initial API and
*implementation
******************************************************************************/
#pragma once
#include <list>
#include "grpprotein.h"
namespace pappso
{
class GrpMapPeptideToSubGroupSet;
class GrpPeptideSet
{
friend class GrpMapPeptideToSubGroupSet;
friend class GrpMapPeptideToGroup;
private:
std::list<GrpPeptide *> m_peptidePtrList;
bool privContainsAll(const GrpPeptideSet &peptideSetIn) const;
public:
GrpPeptideSet();
GrpPeptideSet(const GrpPeptideSet &other);
GrpPeptideSet(const GrpProtein *p_protein);
~GrpPeptideSet();
GrpPeptideSet &operator=(const GrpPeptideSet &other);
bool operator==(const GrpPeptideSet &other) const;
unsigned int
size() const
{
return m_peptidePtrList.size();
};
bool biggerAndContainsAll(const GrpPeptideSet &peptideSet) const;
bool contains(const GrpPeptide *p_grp_peptide) const;
bool containsAll(const GrpPeptideSet &peptideSet) const;
bool containsAny(const GrpPeptideSet &peptideSet) const;
void addAll(const GrpPeptideSet &peptideSet);
const QString printInfos() const;
void numbering();
void setGroupNumber(unsigned int i);
std::vector<const GrpPeptide *> getGrpPeptideList() const;
};
} // namespace pappso
pappso::GrpMapPeptideToGroup
Definition: grpmappeptidetogroup.h:43
pappso::GrpMapPeptideToSubGroupSet
Definition: grpmappeptidetosubgroupset.h:37
pappso::GrpPeptideSet
Definition: grppeptideset.h:36
pappso::GrpPeptideSet::m_peptidePtrList
std::list< GrpPeptide * > m_peptidePtrList
Definition: grppeptideset.h:41
pappso::GrpPeptideSet::size
unsigned int size() const
Definition: grppeptideset.h:54
pappso::GrpPeptideSet::printInfos
const QString printInfos() const
Definition: grppeptideset.cpp:248
pappso::GrpPeptideSet::addAll
void addAll(const GrpPeptideSet &peptideSet)
Definition: grppeptideset.cpp:165
pappso::GrpPeptideSet::getGrpPeptideList
std::vector< const GrpPeptide * > getGrpPeptideList() const
Definition: grppeptideset.cpp:237
pappso::GrpPeptideSet::numbering
void numbering()
Definition: grppeptideset.cpp:206
pappso::GrpPeptideSet::operator==
bool operator==(const GrpPeptideSet &other) const
Definition: grppeptideset.cpp:58
pappso::GrpPeptideSet::containsAny
bool containsAny(const GrpPeptideSet &peptideSet) const
Definition: grppeptideset.cpp:134
pappso::GrpPeptideSet::GrpPeptideSet
GrpPeptideSet()
Definition: grppeptideset.cpp:29
pappso::GrpPeptideSet::setGroupNumber
void setGroupNumber(unsigned int i)
Definition: grppeptideset.cpp:225
pappso::GrpPeptideSet::operator=
GrpPeptideSet & operator=(const GrpPeptideSet &other)
Definition: grppeptideset.cpp:51
pappso::GrpPeptideSet::~GrpPeptideSet
~GrpPeptideSet()
Definition: grppeptideset.cpp:46
pappso::GrpPeptideSet::biggerAndContainsAll
bool biggerAndContainsAll(const GrpPeptideSet &peptideSet) const
Definition: grppeptideset.cpp:90
pappso::GrpPeptideSet::contains
bool contains(const GrpPeptide *p_grp_peptide) const
Definition: grppeptideset.cpp:68
pappso::GrpPeptideSet::privContainsAll
bool privContainsAll(const GrpPeptideSet &peptideSetIn) const
Definition: grppeptideset.cpp:100
pappso::GrpPeptideSet::containsAll
bool containsAll(const GrpPeptideSet &peptideSet) const
Definition: grppeptideset.cpp:80
pappso::GrpPeptide
Definition: grppeptide.h:43
pappso::GrpProtein
Definition: grpprotein.h:40
grpprotein.h
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition: aa.cpp:39