Iterator for a FASTA file. More...
#include <OpenMS/FORMAT/FastaIteratorIntern.h>
Public Types | |
| typedef std::pair< String, String > | FASTAEntry |
Public Member Functions | |
| FastaIteratorIntern () | |
| constructor | |
| FastaIteratorIntern (const FastaIteratorIntern &) | |
| copy constructor | |
| virtual | ~FastaIteratorIntern () |
| constructor | |
| virtual FASTAEntry | operator* () |
| * Operator for derefering of iterator | |
| virtual PepIterator & | operator++ () |
| ++ Operator for the iterator | |
| virtual PepIterator * | operator++ (int i) |
| ++ Operator for the iterator | |
| virtual void | setFastaFile (const String &f) |
| setter for FASTA file | |
| virtual String | getFastaFile () |
| getter for FASTA file | |
| virtual void | setSpectrum (const std::vector< DoubleReal > &) |
| setter for spectrum | |
| virtual const std::vector < DoubleReal > & | getSpectrum () |
| getter for spectrum | |
| virtual void | setTolerance (DoubleReal) |
| setter for tolerance | |
| virtual DoubleReal | getTolerance () |
| getter for tolerance | |
| virtual bool | begin () |
| initializing of iterator | |
| virtual bool | isAtEnd () |
| indicates whether iterator is at end | |
Static Public Member Functions | |
| static const std::string | getProductName () |
| needed by Factory | |
| static PepIterator * | create () |
| needed by Factory | |
Protected Attributes | |
| String | fasta_file_ |
| location of the fasta file | |
| std::vector< FASTAEntry > | entrys_ |
| content of fasta file | |
| std::vector< FASTAEntry >::iterator | it_ |
| iterator over fasta file content | |
Iterator for a FASTA file.
In comparision to FastaIterator the FASTA file will be loaded first and stored to RAM, while the FastaIterator just iterates over the FASTA file without loading it completly to memory.
| typedef std::pair<String, String> FASTAEntry |
Reimplemented from PepIterator.
constructor
| FastaIteratorIntern | ( | const FastaIteratorIntern & | ) |
copy constructor
| virtual ~FastaIteratorIntern | ( | ) | [virtual] |
constructor
| virtual bool begin | ( | ) | [virtual] |
initializing of iterator
| Exception::InvalidIterator | if fastaFile was not set |
Implements PepIterator.
| static PepIterator* create | ( | ) | [inline, static] |
needed by Factory
| virtual String getFastaFile | ( | ) | [virtual] |
| static const std::string getProductName | ( | ) | [inline, static] |
needed by Factory
| virtual const std::vector<DoubleReal>& getSpectrum | ( | ) | [inline, virtual] |
getter for spectrum
| Exception::NotImplemented |
Implements PepIterator.
| virtual DoubleReal getTolerance | ( | ) | [inline, virtual] |
getter for tolerance
| Exception::NotImplemented |
Implements PepIterator.
| virtual bool isAtEnd | ( | ) | [virtual] |
indicates whether iterator is at end
Implements PepIterator.
| virtual FASTAEntry operator* | ( | ) | [virtual] |
* Operator for derefering of iterator
| Exception::InvalidIterator | if iterator has not been initialized |
Implements PepIterator.
| virtual PepIterator* operator++ | ( | int | i | ) | [virtual] |
++ Operator for the iterator
| Exception::InvalidIterator | if iterator has not been initialized |
Implements PepIterator.
| virtual PepIterator& operator++ | ( | ) | [virtual] |
++ Operator for the iterator
| Exception::InvalidIterator | if iterator has not been initialized |
Implements PepIterator.
| virtual void setFastaFile | ( | const String & | f | ) | [virtual] |
setter for FASTA file
| f | const String reference representing file location |
| Exception::FileNotFound | ||
| Exception::ParseError |
Implements PepIterator.
| virtual void setSpectrum | ( | const std::vector< DoubleReal > & | ) | [inline, virtual] |
setter for spectrum
| Exception::NotImplemented |
Implements PepIterator.
| virtual void setTolerance | ( | DoubleReal | ) | [inline, virtual] |
setter for tolerance
| Exception::NotImplemented |
Implements PepIterator.
std::vector<FASTAEntry> entrys_ [protected] |
content of fasta file
String fasta_file_ [protected] |
location of the fasta file
std::vector<FASTAEntry>::iterator it_ [protected] |
iterator over fasta file content
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:42:53 using doxygen 1.7.1 |