ProteoWizard
|
Parent class of all Identifiable objects that have ParamGroups. More...
#include <IdentData.hpp>
Public Member Functions | |
IdentifiableParamContainer (const std::string &id_="", const std::string &name_="") | |
virtual | ~IdentifiableParamContainer () |
virtual bool | empty () const |
![]() | |
CVParam | cvParam (CVID cvid) const |
finds cvid in the container: More... | |
CVParam | cvParamChild (CVID cvid) const |
finds child of cvid in the container: More... | |
std::vector< CVParam > | cvParamChildren (CVID cvid) const |
finds all children of cvid in the container: More... | |
bool | hasCVParam (CVID cvid) const |
returns true iff cvParams contains exact cvid (recursive) More... | |
bool | hasCVParamChild (CVID cvid) const |
returns true iff cvParams contains a child (is_a) of cvid (recursive) More... | |
UserParam | userParam (const std::string &) const |
finds UserParam with specified name More... | |
void | set (CVID cvid, const std::string &value="", CVID units=CVID_Unknown) |
set/add a CVParam (not recursive) More... | |
void | set (CVID cvid, double value, CVID units=CVID_Unknown) |
set/add a CVParam (not recursive) More... | |
void | set (CVID cvid, int value, CVID units=CVID_Unknown) |
set/add a CVParam (not recursive) More... | |
template<typename value_type > | |
void | set (CVID cvid, value_type value, CVID units=CVID_Unknown) |
set/add a CVParam (not recursive) More... | |
bool | empty () const |
returns true iff the element contains no params or param groups More... | |
void | clear () |
clears the collections More... | |
bool | operator== (const ParamContainer &that) const |
returns true iff this and that have the exact same cvParams and userParams More... | |
bool | operator!= (const ParamContainer &that) const |
returns !(this==that) More... | |
template<> | |
void | set (CVID cvid, bool value, CVID units) |
special case for bool (outside the class for gcc 3.4, and inline for msvc) More... | |
Public Attributes | |
std::string | id |
std::string | name |
![]() | |
std::vector< ParamGroupPtr > | paramGroupPtrs |
a collection of references to ParamGroups More... | |
std::vector< CVParam > | cvParams |
a collection of controlled vocabulary terms More... | |
std::vector< UserParam > | userParams |
a collection of uncontrolled user terms More... | |
Parent class of all Identifiable objects that have ParamGroups.
Represents bibliographic references.
Definition at line 79 of file IdentData.hpp.
pwiz::identdata::IdentifiableParamContainer::IdentifiableParamContainer | ( | const std::string & | id_ = "" , |
const std::string & | name_ = "" |
||
) |
|
inlinevirtual |
Definition at line 83 of file IdentData.hpp.
|
virtual |
Reimplemented in pwiz::identdata::SourceFile, pwiz::identdata::ProteinDetectionList, pwiz::identdata::ProteinAmbiguityGroup, pwiz::identdata::ProteinDetectionHypothesis, pwiz::identdata::SpectrumIdentificationList, pwiz::identdata::SpectrumIdentificationResult, pwiz::identdata::SpectrumIdentificationItem, pwiz::identdata::PeptideEvidence, pwiz::identdata::Measure, pwiz::identdata::Peptide, pwiz::identdata::DBSequence, pwiz::identdata::SearchDatabase, pwiz::identdata::Sample, pwiz::identdata::Person, pwiz::identdata::Organization, and pwiz::identdata::Contact.
std::string pwiz::identdata::IdentifiableParamContainer::id |
Definition at line 85 of file IdentData.hpp.
Referenced by pwiz::identdata::TextWriter::operator()(), testContact(), testDBSequence(), testIdentifiableParamContainer(), testMeasure(), testPeptide(), testPeptideEvidence(), testProteinAmbiguityGroup(), testProteinDetectionHypothesis(), testProteinDetectionList(), testSearchDatabase(), testSourceFile(), testSpectrumIdentificationItem(), testSpectrumIdentificationList(), and testSpectrumIdentificationResult().
std::string pwiz::identdata::IdentifiableParamContainer::name |
Definition at line 86 of file IdentData.hpp.
Referenced by pwiz::identdata::TextWriter::operator()(), testContact(), testDBSequence(), testIdentifiableParamContainer(), and testPeptide().