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

List of all members.

Public Member Functions

 SelectedIndexPredicate ()
virtual tribool accept (const Protein &protein) const
 return true iff Protein is accepted
virtual bool done () const
 return true iff done accepting proteins; this allows early termination of the iteration through the original ProteinList, possibly using assumptions about the order of the iteration (e.g.
 SelectedIndexPredicate ()
virtual tribool accept (const SpectrumIdentity &spectrumIdentity) const
 return values: true: accept the Spectrum false: reject the Spectrum indeterminate: need to see the full Spectrum object to decide
virtual bool done () const
 return true iff done accepting proteins; this allows early termination of the iteration through the original ProteinList, possibly using assumptions about the order of the iteration (e.g.
- Public Member Functions inherited from pwiz::analysis::SpectrumList_Filter::Predicate
virtual msdata::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 boost::logic::tribool accept (const msdata::Spectrum &spectrum) const
 return true iff Spectrum is accepted
virtual ~Predicate ()
- Public Member Functions inherited from pwiz::analysis::ProteinList_Filter::Predicate
virtual ~Predicate ()

Public Attributes

bool pastMaxIndex

Detailed Description

Definition at line 76 of file ProteinList_FilterTest.cpp.


Constructor & Destructor Documentation

SelectedIndexPredicate::SelectedIndexPredicate ( )
inline

Definition at line 80 of file ProteinList_FilterTest.cpp.

: pastMaxIndex(false) {}
SelectedIndexPredicate::SelectedIndexPredicate ( )
inline

Definition at line 217 of file SpectrumList_FilterTest.cpp.

: pastMaxIndex(false) {}

Member Function Documentation

virtual tribool SelectedIndexPredicate::accept ( const Protein protein) const
inlinevirtual

return true iff Protein is accepted

Reimplemented from pwiz::analysis::ProteinList_Filter::Predicate.

Definition at line 82 of file ProteinList_FilterTest.cpp.

References pwiz::proteome::Protein::index.

{
if (protein.index>5) pastMaxIndex = true;
return (protein.index==1 ||
protein.index==3 ||
protein.index==5);
}
virtual bool SelectedIndexPredicate::done ( ) const
inlinevirtual

return true iff done accepting proteins; this allows early termination of the iteration through the original ProteinList, possibly using assumptions about the order of the iteration (e.g.

index is increasing)

Reimplemented from pwiz::analysis::ProteinList_Filter::Predicate.

Definition at line 91 of file ProteinList_FilterTest.cpp.

{
return pastMaxIndex;
}
virtual tribool SelectedIndexPredicate::accept ( const 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 219 of file SpectrumList_FilterTest.cpp.

References pwiz::msdata::SpectrumIdentity::index.

{
if (spectrumIdentity.index>5) pastMaxIndex = true;
return (spectrumIdentity.index==1 ||
spectrumIdentity.index==3 ||
spectrumIdentity.index==5);
}
virtual bool SelectedIndexPredicate::done ( ) const
inlinevirtual

return true iff done accepting proteins; this allows early termination of the iteration through the original ProteinList, possibly using assumptions about the order of the iteration (e.g.

index is increasing)

Reimplemented from pwiz::analysis::ProteinList_Filter::Predicate.

Definition at line 228 of file SpectrumList_FilterTest.cpp.

{
return pastMaxIndex;
}

Member Data Documentation

bool SelectedIndexPredicate::pastMaxIndex
mutable

Definition at line 78 of file ProteinList_FilterTest.cpp.


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