gatb.core-API-0.0.0
|
Specific Iterator impl for Bank class. More...
#include <BankFasta.hpp>
Public Types |
Public Member Functions | |
Iterator (BankFasta &ref, CommentMode_e commentMode=FULL) | |
~Iterator () | |
void | first () |
void | next () |
bool | isDone () |
Sequence & | item () |
void | estimate (u_int64_t &number, u_int64_t &totalSize, u_int64_t &maxSize) |
Public Member Functions inherited from Iterator< Sequence > | |
Sequence * | operator-> () |
Sequence & | operator* () |
void | iterate (const Functor &f) |
virtual void | setItem (Sequence &i) |
bool | get (std::vector< Sequence > ¤t) |
virtual void | reset () |
virtual std::vector< Iterator< Sequence > * > | getComposition () |
Public Member Functions inherited from SmartPointer | |
void | use () |
void | forget () |
Public Member Functions inherited from ISmartPointer | |
virtual | ~ISmartPointer () |
Additional Inherited Members | |
Protected Member Functions inherited from SmartPointer | |
SmartPointer () | |
virtual | ~SmartPointer () |
Specific Iterator impl for Bank class.
This implementation relies on the initial code from Minia. It wraps the Iterator interface with the Minia code.
Note that we made some effort not to put implementation code here in the header; see in particular buffered_file and buffered_strings attributes whose type is void* (and not the implementation type defined in the cpp file).
Note the small improvement compared to Minia: it is possible to create an Iterator that provides (or not) sequence comments, according to the corresponding parameter given to the Iterator constructor.
IMPROVEMENTS:
enum CommentMode_e |
Define what kind of comment we want to retrieve. Such comments can be retrieved through gatb::core::bank::Sequence
Iterator | ( | BankFasta & | ref, |
CommentMode_e | commentMode = FULL |
||
) |
Constructor.
[in] | ref | : the associated iterable instance. |
[in] | commentMode | : kind of comments we want to retrieve |
~Iterator | ( | ) |
Destructor
void estimate | ( | u_int64_t & | number, |
u_int64_t & | totalSize, | ||
u_int64_t & | maxSize | ||
) |
Estimation of the sequences information
|
virtual |
Method that initializes the iteration.
Implements Iterator< Sequence >.
|
inlinevirtual |
Method telling whether the iteration is finished or not.
Implements Iterator< Sequence >.
|
inlinevirtual |
Method that returns the current iterated item. Note that the returned type is the template type.
Implements Iterator< Sequence >.
|
virtual |
Method that goes to the next item in the iteration.
Implements Iterator< Sequence >.