bpp-seq3
3.0.0
|
Partial implementation of the SequencePositionIterator interface. More...
#include <Bpp/Seq/SequencePositionIterators.h>
Public Member Functions | |
AbstractSequencePositionIterator (const Sequence &seq, unsigned int pos=0) | |
AbstractSequencePositionIterator (const AbstractSequencePositionIterator &aspi) | |
AbstractSequencePositionIterator & | operator= (const AbstractSequencePositionIterator &aspi) |
virtual | ~AbstractSequencePositionIterator () |
unsigned int | getPosition () const |
Get the actual position of the iterator in the Sequence. More... | |
void | setPosition (unsigned int pos) |
Set the position of the iterator. More... | |
int | getValue () const |
Get the numerical value of the Sequence at current position. More... | |
std::string | getChar () const |
Get the textual value of the Sequence at current position. More... | |
const Sequence & | getSequence () const |
Get the Sequence on which the iterator loops. More... | |
virtual SequencePositionIterator & | operator+= (int i)=0 |
virtual SequencePositionIterator & | operator-= (int i)=0 |
virtual SequencePositionIterator & | operator++ ()=0 |
virtual bool | hasMorePositions () const =0 |
Tells if there is more positions in the Sequence. More... | |
Comparison operators | |
bool | operator== (const SequencePositionIterator &it) const |
bool | operator!= (const SequencePositionIterator &it) const |
Private Attributes | |
const Sequence * | sequence_ |
unsigned int | currentPosition_ |
Partial implementation of the SequencePositionIterator interface.
Definition at line 71 of file SequencePositionIterators.h.
|
inline |
Definition at line 79 of file SequencePositionIterators.h.
|
inline |
Definition at line 82 of file SequencePositionIterators.h.
|
inlinevirtual |
Definition at line 92 of file SequencePositionIterators.h.
|
virtual |
Get the textual value of the Sequence at current position.
Implements bpp::SequencePositionIterator.
Definition at line 54 of file SequencePositionIterators.cpp.
|
virtual |
Get the actual position of the iterator in the Sequence.
Implements bpp::SequencePositionIterator.
Definition at line 40 of file SequencePositionIterators.cpp.
Referenced by bpp::SimpleSequencePositionIterator::hasMorePositions(), bpp::SimpleSequencePositionIterator::operator++(), and bpp::SimpleSequencePositionIterator::operator+=().
|
virtual |
Get the Sequence on which the iterator loops.
Implements bpp::SequencePositionIterator.
Definition at line 33 of file SequencePositionIterators.cpp.
Referenced by bpp::SimpleSequencePositionIterator::hasMorePositions().
|
virtual |
Get the numerical value of the Sequence at current position.
Implements bpp::SequencePositionIterator.
Definition at line 47 of file SequencePositionIterators.cpp.
|
pure virtualinherited |
Tells if there is more positions in the Sequence.
Implemented in bpp::SimpleSequencePositionIterator.
|
virtual |
Implements bpp::SequencePositionIterator.
Definition at line 19 of file SequencePositionIterators.cpp.
References bpp::SequencePositionIterator::getPosition().
|
pure virtualinherited |
Implemented in bpp::SimpleSequencePositionIterator.
|
pure virtualinherited |
Implemented in bpp::SimpleSequencePositionIterator.
|
pure virtualinherited |
Implemented in bpp::SimpleSequencePositionIterator.
|
inline |
Definition at line 85 of file SequencePositionIterators.h.
References currentPosition_, and sequence_.
|
virtual |
Implements bpp::SequencePositionIterator.
Definition at line 12 of file SequencePositionIterators.cpp.
References bpp::SequencePositionIterator::getPosition().
|
virtual |
Set the position of the iterator.
pos | The position on the Sequence |
Implements bpp::SequencePositionIterator.
Definition at line 26 of file SequencePositionIterators.cpp.
Referenced by bpp::SimpleSequencePositionIterator::operator++(), and bpp::SimpleSequencePositionIterator::operator+=().
|
private |
Definition at line 76 of file SequencePositionIterators.h.
Referenced by operator=().
|
private |
Definition at line 75 of file SequencePositionIterators.h.
Referenced by operator=().