|
ProteoWizard
|
SpectrumIterator provides convenient iteration through a set of scans in a SpectrumList. More...
#include <SpectrumIterator.hpp>
Classes | |
| struct | Config |
| SpectrumIterator configuration – note that constructors allow automatic conversion from IntegerSet or Sieve to Config. More... | |
| class | Sieve |
| interface for filtering based on ScanInfo More... | |
Public Types | |
standard iterator typedefs | |
| typedef std::input_iterator_tag | iterator_category |
| typedef Spectrum | value_type |
| typedef int | difference_type |
| typedef value_type * | pointer |
| typedef value_type & | reference |
Public Member Functions | |
| SpectrumIterator () | |
| special default object for marking past-the-end | |
| SpectrumIterator (const SpectrumList &spectrumList, const Config &config=Config()) | |
| constructor for normal initialization of the iterator | |
| SpectrumIterator (const MSData &msd, const Config &config=Config()) | |
| constructor using MSData object | |
| SpectrumIterator (const SpectrumIterator &) | |
| copy constructor | |
input iterator interface | |
| SpectrumIterator & | operator++ () |
| const Spectrum & | operator* () const |
| const Spectrum * | operator-> () const |
| bool | operator== (const SpectrumIterator &that) const |
| bool | operator!= (const SpectrumIterator &that) const |
Private Member Functions | |
| SpectrumIterator & | operator= (const SpectrumIterator &) |
| no copying | |
| SpectrumIterator | operator++ (int) |
| don't do this – avoid temporary copy | |
Private Attributes | |
| boost::shared_ptr< Impl > | impl_ |
SpectrumIterator provides convenient iteration through a set of scans in a SpectrumList.
Its behavior is similar to istream_iterator. In particular:
Because SpectrumIterator holds a copy of the current Spectrum internally, copy assignment and postincrement have been disabled.
Iteration may be customized in a number of ways:
For usage examples, see SpectrumIteratorTest.cpp
Definition at line 57 of file SpectrumIterator.hpp.
| typedef std::input_iterator_tag pwiz::msdata::SpectrumIterator::iterator_category |
Definition at line 115 of file SpectrumIterator.hpp.
Definition at line 116 of file SpectrumIterator.hpp.
| typedef int pwiz::msdata::SpectrumIterator::difference_type |
Definition at line 117 of file SpectrumIterator.hpp.
Definition at line 118 of file SpectrumIterator.hpp.
Definition at line 119 of file SpectrumIterator.hpp.
| pwiz::msdata::SpectrumIterator::SpectrumIterator | ( | ) |
special default object for marking past-the-end
| pwiz::msdata::SpectrumIterator::SpectrumIterator | ( | const SpectrumList & | spectrumList, |
| const Config & | config = Config() |
||
| ) |
constructor for normal initialization of the iterator
| pwiz::msdata::SpectrumIterator::SpectrumIterator | ( | const MSData & | msd, |
| const Config & | config = Config() |
||
| ) |
constructor using MSData object
| pwiz::msdata::SpectrumIterator::SpectrumIterator | ( | const SpectrumIterator & | ) |
copy constructor
| SpectrumIterator& pwiz::msdata::SpectrumIterator::operator++ | ( | ) |
| const Spectrum& pwiz::msdata::SpectrumIterator::operator* | ( | ) | const |
| const Spectrum* pwiz::msdata::SpectrumIterator::operator-> | ( | ) | const |
| bool pwiz::msdata::SpectrumIterator::operator== | ( | const SpectrumIterator & | that | ) | const |
| bool pwiz::msdata::SpectrumIterator::operator!= | ( | const SpectrumIterator & | that | ) | const |
|
private |
no copying
|
private |
don't do this – avoid temporary copy
|
private |
Definition at line 124 of file SpectrumIterator.hpp.
1.8.1.1