random access iterator for SparseVector including the hop() function to jump to the next non-sparse element More...
#include <OpenMS/DATASTRUCTURES/SparseVector.h>
Public Member Functions | |
SparseVectorIterator (const SparseVectorIterator &source) | |
copy constructor More... | |
virtual | ~SparseVectorIterator () |
destructor More... | |
SparseVectorIterator & | operator= (const SparseVectorIterator &source) |
assignment operator More... | |
SparseVectorIterator & | operator++ () |
prefix increment More... | |
SparseVectorIterator | operator++ (int) |
postfix increment More... | |
SparseVectorIterator & | operator-- () |
prefix decrement More... | |
SparseVectorIterator | operator-- (int) |
postfix decrement More... | |
ValueProxy | operator* () |
dereference operator More... | |
const Value | operator* () const |
const dereference operator More... | |
ValueProxy | operator[] (size_type n) |
indexing More... | |
SparseVectorIterator & | operator+= (const size_type rhs) |
compound assignment + More... | |
SparseVectorIterator & | operator-= (const size_type rhs) |
compound assignment - More... | |
SparseVectorIterator | operator+ (const size_type rhs) const |
binary arithmetic + More... | |
difference_type | operator+ (const SparseVectorIterator rhs) const |
binary arithmetic + More... | |
SparseVectorIterator | operator- (const size_type rhs) const |
binary arithmetic - More... | |
difference_type | operator- (const SparseVectorIterator rhs) const |
binary arithmetic - More... | |
bool | operator!= (const SparseVectorIterator &other) |
inequality operator More... | |
bool | operator== (const SparseVectorIterator &other) |
equality operator More... | |
bool | operator< (const SparseVectorIterator &other) |
less than operator More... | |
bool | operator> (const SparseVectorIterator &other) |
greater than operator More... | |
bool | operator<= (const SparseVectorIterator &other) |
less or equal than operator More... | |
bool | operator>= (const SparseVectorIterator &other) |
greater or equal than operator More... | |
SparseVectorIterator & | hop () |
go to the next nonempty position More... | |
size_type | position () const |
find out at what position the iterator is; useful in combination with hop() More... | |
Protected Member Functions | |
SparseVectorIterator (SparseVector &vector, size_type position) | |
Protected Attributes | |
size_type | position_ |
the position in the referred SparseVector More... | |
SparseVector & | vector_ |
the referred SparseVector More... | |
map_const_iterator | valit_ |
the position in the underlying map of SparseVector More... | |
Private Member Functions | |
SparseVectorIterator () | |
Not implemented => private. More... | |
Friends | |
class | SparseVector< Value > |
class | SparseVectorConstIterator |
random access iterator for SparseVector including the hop() function to jump to the next non-sparse element
|
inline |
copy constructor
|
inlinevirtual |
destructor
|
inlineprotected |
|
private |
Not implemented => private.
Referenced by SparseVector< Value >::SparseVectorIterator::operator+(), and SparseVector< Value >::SparseVectorIterator::operator-().
|
inline |
go to the next nonempty position
References SparseVector< Value >::SparseVectorIterator::position_, SparseVector< Value >::size_, SparseVector< Value >::SparseVectorIterator::valit_, SparseVector< Value >::values_, and SparseVector< Value >::SparseVectorIterator::vector_.
|
inline |
inequality operator
References SparseVector< Value >::SparseVectorIterator::position_, and SparseVector< Value >::SparseVectorIterator::vector_.
|
inline |
dereference operator
References SparseVector< Value >::SparseVectorIterator::position_, SparseVector< Value >::size_, and SparseVector< Value >::SparseVectorIterator::vector_.
|
inline |
const dereference operator
References SparseVector< Value >::SparseVectorIterator::position_, SparseVector< Value >::size_, and SparseVector< Value >::SparseVectorIterator::vector_.
|
inline |
|
inline |
binary arithmetic +
References SparseVector< Value >::SparseVectorIterator::position(), and SparseVector< Value >::SparseVectorIterator::position_.
|
inline |
prefix increment
References SparseVector< Value >::SparseVectorIterator::position_.
|
inline |
postfix increment
References SparseVector< Value >::SparseVectorIterator::position_.
|
inline |
compound assignment +
References SparseVector< Value >::SparseVectorIterator::position_.
|
inline |
|
inline |
binary arithmetic -
References SparseVector< Value >::SparseVectorIterator::position(), and SparseVector< Value >::SparseVectorIterator::position_.
|
inline |
prefix decrement
References SparseVector< Value >::SparseVectorIterator::position_.
|
inline |
postfix decrement
References SparseVector< Value >::SparseVectorIterator::position_.
|
inline |
compound assignment -
References SparseVector< Value >::SparseVectorIterator::position_.
|
inline |
less than operator
References SparseVector< Value >::SparseVectorIterator::position(), and SparseVector< Value >::SparseVectorIterator::position_.
|
inline |
less or equal than operator
References SparseVector< Value >::SparseVectorIterator::position(), and SparseVector< Value >::SparseVectorIterator::position_.
|
inline |
assignment operator
References SparseVector< Value >::SparseVectorIterator::position_, SparseVector< Value >::SparseVectorIterator::valit_, and SparseVector< Value >::SparseVectorIterator::vector_.
|
inline |
equality operator
|
inline |
greater than operator
References SparseVector< Value >::SparseVectorIterator::position(), and SparseVector< Value >::SparseVectorIterator::position_.
|
inline |
greater or equal than operator
References SparseVector< Value >::SparseVectorIterator::position(), and SparseVector< Value >::SparseVectorIterator::position_.
|
inline |
|
inline |
find out at what position the iterator is; useful in combination with hop()
References SparseVector< Value >::SparseVectorIterator::position_.
Referenced by SparseVector< Value >::SparseVectorIterator::operator+(), SparseVector< Value >::SparseVectorIterator::operator-(), SparseVector< Value >::SparseVectorIterator::operator<(), SparseVector< Value >::SparseVectorIterator::operator<=(), SparseVector< Value >::SparseVectorIterator::operator>(), and SparseVector< Value >::SparseVectorIterator::operator>=().
|
friend |
|
friend |
|
protected |
the position in the referred SparseVector
Referenced by SparseVector< Value >::SparseVectorIterator::hop(), SparseVector< Value >::SparseVectorIterator::operator!=(), SparseVector< Value >::SparseVectorIterator::operator*(), SparseVector< Value >::SparseVectorIterator::operator+(), SparseVector< Value >::SparseVectorIterator::operator++(), SparseVector< Value >::SparseVectorIterator::operator+=(), SparseVector< Value >::SparseVectorIterator::operator-(), SparseVector< Value >::SparseVectorIterator::operator--(), SparseVector< Value >::SparseVectorIterator::operator-=(), SparseVector< Value >::SparseVectorIterator::operator<(), SparseVector< Value >::SparseVectorIterator::operator<=(), SparseVector< Value >::SparseVectorIterator::operator=(), SparseVector< Value >::SparseVectorIterator::operator>(), SparseVector< Value >::SparseVectorIterator::operator>=(), SparseVector< Value >::SparseVectorIterator::operator[](), and SparseVector< Value >::SparseVectorIterator::position().
|
protected |
the position in the underlying map of SparseVector
Referenced by SparseVector< Value >::SparseVectorIterator::hop(), and SparseVector< Value >::SparseVectorIterator::operator=().
|
protected |
the referred SparseVector
Referenced by SparseVector< Value >::SparseVectorIterator::hop(), SparseVector< Value >::SparseVectorIterator::operator!=(), SparseVector< Value >::SparseVectorIterator::operator*(), SparseVector< Value >::SparseVectorIterator::operator+(), SparseVector< Value >::SparseVectorIterator::operator-(), SparseVector< Value >::SparseVectorIterator::operator=(), and SparseVector< Value >::SparseVectorIterator::operator[]().
OpenMS / TOPP release 2.0.0 | Documentation generated on Thu Aug 20 2015 01:44:40 using doxygen 1.8.9.1 |