ProteoWizard
Public Member Functions | Public Attributes
HasBinaryDataPredicate Struct Reference
Inheritance diagram for HasBinaryDataPredicate:
pwiz::analysis::SpectrumList_Filter::Predicate

List of all members.

Public Member Functions

 HasBinaryDataPredicate (DetailLevel suggestedDetailLevel)
virtual DetailLevel suggestedDetailLevel () const
 can be overridden in subclasses that know they will need a certain detail level; it must be overridden to return DetailLevel_FullData if binary data is needed
virtual tribool accept (const msdata::SpectrumIdentity &spectrumIdentity) const
 return values: true: accept the Spectrum false: reject the Spectrum indeterminate: need to see the full Spectrum object to decide
virtual tribool accept (const Spectrum &spectrum) const
 return true iff Spectrum is accepted
- Public Member Functions inherited from pwiz::analysis::SpectrumList_Filter::Predicate
virtual bool done () const
 return true iff done accepting spectra; this allows early termination of the iteration through the original SpectrumList, possibly using assumptions about the order of the iteration (e.g.
virtual ~Predicate ()

Public Attributes

DetailLevel detailLevel_

Detailed Description

Definition at line 254 of file SpectrumList_FilterTest.cpp.


Constructor & Destructor Documentation

HasBinaryDataPredicate::HasBinaryDataPredicate ( DetailLevel  suggestedDetailLevel)
inline

Member Function Documentation

virtual DetailLevel HasBinaryDataPredicate::suggestedDetailLevel ( ) const
inlinevirtual

can be overridden in subclasses that know they will need a certain detail level; it must be overridden to return DetailLevel_FullData if binary data is needed

Reimplemented from pwiz::analysis::SpectrumList_Filter::Predicate.

Definition at line 259 of file SpectrumList_FilterTest.cpp.

{return detailLevel_;}
virtual tribool HasBinaryDataPredicate::accept ( const msdata::SpectrumIdentity spectrumIdentity) const
inlinevirtual

return values: true: accept the Spectrum false: reject the Spectrum indeterminate: need to see the full Spectrum object to decide

Implements pwiz::analysis::SpectrumList_Filter::Predicate.

Definition at line 261 of file SpectrumList_FilterTest.cpp.

{
return boost::logic::indeterminate;
}
virtual tribool HasBinaryDataPredicate::accept ( const Spectrum spectrum) const
inlinevirtual

return true iff Spectrum is accepted

Reimplemented from pwiz::analysis::SpectrumList_Filter::Predicate.

Definition at line 266 of file SpectrumList_FilterTest.cpp.

References pwiz::msdata::Spectrum::binaryDataArrayPtrs.

{
if (spectrum.binaryDataArrayPtrs.empty())
return boost::logic::indeterminate;
return !spectrum.binaryDataArrayPtrs[0]->data.empty();
}

Member Data Documentation

DetailLevel HasBinaryDataPredicate::detailLevel_

Definition at line 258 of file SpectrumList_FilterTest.cpp.


The documentation for this struct was generated from the following file: