ProteoWizard
|
The base class for elements that may contain cvParams, userParams, or paramGroup references. More...
#include <ParamTypes.hpp>
Public Member Functions | |
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::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... | |
The base class for elements that may contain cvParams, userParams, or paramGroup references.
Definition at line 244 of file ParamTypes.hpp.
CVParam pwiz::data::ParamContainer::cvParam | ( | CVID | cvid | ) | const |
finds cvid in the container:
Referenced by EvenMS2Predicate::accept(), checkSpectrumInfo(), MSLevelSorter::less(), test(), testAmbiguousResidue(), testParamContainer(), testPrecursor(), verifyPrecursorMZ(), and verifyScanInfo().
CVParam pwiz::data::ParamContainer::cvParamChild | ( | CVID | cvid | ) | const |
finds child of cvid in the container:
Referenced by FTSieve::accept(), EvenMS2Predicate::accept(), doSomething(), and testParamContainer().
std::vector<CVParam> pwiz::data::ParamContainer::cvParamChildren | ( | CVID | cvid | ) | const |
finds all children of cvid in the container:
Referenced by testParamContainer().
bool pwiz::data::ParamContainer::hasCVParam | ( | CVID | cvid | ) | const |
returns true iff cvParams contains exact cvid (recursive)
Referenced by testEnzyme(), testFilter(), testMeasure(), testParamContainer(), testPeptideEvidence(), testProteinAmbiguityGroup(), testProteinDetectionHypothesis(), testProteinDetectionList(), testSample(), testSearchDatabase(), and testSourceFile().
bool pwiz::data::ParamContainer::hasCVParamChild | ( | CVID | cvid | ) | const |
returns true iff cvParams contains a child (is_a) of cvid (recursive)
Referenced by testParamContainer().
UserParam pwiz::data::ParamContainer::userParam | ( | const std::string & | ) | const |
finds UserParam with specified name
Referenced by testMaxPrecisionDiff(), and testParamContainer().
void pwiz::data::ParamContainer::set | ( | CVID | cvid, |
const std::string & | value = "" , |
||
CVID | units = CVID_Unknown |
||
) |
set/add a CVParam (not recursive)
Referenced by initializeTestData(), initializeTinyMGF(), initializeTinyMS1(), initializeTinyMS2(), testAmbiguousResidue(), testAnalysisSoftware(), testCleavageAgent(), testContact(), testConversion(), testDBSequence(), testEnzyme(), testEvidence(), testFilter(), testIdentifiableParamContainer(), testInstrumentConfiguration(), testMeasure(), testModification(), testOrganization(), testParamContainer(), testPeptide(), testPeptideEvidence(), testPepXMLSpecificity(), testPerson(), testPrecursor(), testProduct(), testProteinAmbiguityGroup(), testProteinDetectionHypothesis(), testProteinDetectionList(), testProteinDetectionProtocol(), testRetentionTime(), testSample(), testScanList(), testScanSettings(), testSearchDatabase(), testSearchModification(), testSoftware(), testSourceFile(), testSpectrum(), testSpectrumIdentificationItem(), testSpectrumIdentificationProtocol(), testSpectrumIdentificationResult(), testTarget(), testTraData(), testTransition(), and testValidation().
void pwiz::data::ParamContainer::set | ( | CVID | cvid, |
double | value, | ||
CVID | units = CVID_Unknown |
||
) |
set/add a CVParam (not recursive)
void pwiz::data::ParamContainer::set | ( | CVID | cvid, |
int | value, | ||
CVID | units = CVID_Unknown |
||
) |
set/add a CVParam (not recursive)
|
inline |
set/add a CVParam (not recursive)
Definition at line 295 of file ParamTypes.hpp.
References boost::lexical_cast(), pwiz::frequency::operator!=(), pwiz::data::operator==(), and pwiz::msdata::id::value().
bool pwiz::data::ParamContainer::empty | ( | ) | const |
returns true iff the element contains no params or param groups
Referenced by pwiz::identdata::TextWriter::operator()(), and pwiz::msdata::TextWriter::operator()().
void pwiz::data::ParamContainer::clear | ( | ) |
clears the collections
Referenced by stripUnmappedMetadata(), testFilter(), and testPepXMLSpecificity().
bool pwiz::data::ParamContainer::operator== | ( | const ParamContainer & | that | ) | const |
returns true iff this and that have the exact same cvParams and userParams
bool pwiz::data::ParamContainer::operator!= | ( | const ParamContainer & | that | ) | const |
returns !(this==that)
|
inline |
special case for bool (outside the class for gcc 3.4, and inline for msvc)
Definition at line 317 of file ParamTypes.hpp.
std::vector<ParamGroupPtr> pwiz::data::ParamContainer::paramGroupPtrs |
a collection of references to ParamGroups
Definition at line 247 of file ParamTypes.hpp.
Referenced by initializeTestData(), pwiz::msdata::TextWriter::operator()(), spectrumHasMetadata(), testBinaryDataArray(), testChromatogram(), testComponent(), testComponentList(), testFileDescription(), testInstrumentConfiguration(), testMSData(), testParamContainer(), testParamGroup(), testPrecursor(), testProduct(), testRun(), testSample(), testScan(), testScanList(), testSourceFile(), and testSpectrum().
std::vector<CVParam> pwiz::data::ParamContainer::cvParams |
a collection of controlled vocabulary terms
Definition at line 250 of file ParamTypes.hpp.
Referenced by checkSpectrumInfo(), initializeTestData(), pwiz::tradata::TextWriter::operator()(), pwiz::identdata::TextWriter::operator()(), pwiz::msdata::TextWriter::operator()(), spectrumHasMetadata(), test_v3(), testAnalyzer(), testChromatogram(), testComponent(), testCompound(), testConfiguration(), testContact(), testDataProcessing(), testDetector(), testEnzyme(), testEvidence(), testFileDescription(), testInstrument(), testInstrumentConfiguration(), testIonisation(), testMeasure(), testModelAndManufacturer(), testMSData(), testParamContainer(), testParamGroup(), testPeptideEvidence(), testPrecursor(), testPrediction(), testProcessingMethod(), testProduct(), testProteinAmbiguityGroup(), testProteinDetectionHypothesis(), testProteinDetectionList(), testRetentionTime(), testSample(), testScan(), testScanList(), testSearchDatabase(), testSearchModification(), testSourceFile(), testSpectrum(), and testValidation().
std::vector<UserParam> pwiz::data::ParamContainer::userParams |
a collection of uncontrolled user terms
Definition at line 253 of file ParamTypes.hpp.
Referenced by initializeTestData(), pwiz::tradata::TextWriter::operator()(), pwiz::identdata::TextWriter::operator()(), pwiz::msdata::TextWriter::operator()(), spectrumHasMetadata(), testAnalyzer(), testCleavageAgent(), testComponent(), testCompound(), testConfiguration(), testContact(), testDataProcessing(), testDetector(), testEvidence(), testFileContent(), testFileDescription(), testIdentifiableParamContainer(), testInstrument(), testIonisation(), testMaxPrecisionDiff(), testModelAndManufacturer(), testParamContainer(), testParamGroup(), testPepXMLSpecificity(), testPrecursor(), testPrediction(), testProcessingMethod(), testRetentionTime(), testSample(), testScanSettings(), testSearchDatabase(), testSource(), testSourceFile(), and testValidation().