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.
|
inline |
go to the next nonempty position
|
inline |
inequality operator
References SparseVector< Value >::SparseVectorIterator::position_, and SparseVector< Value >::SparseVectorIterator::vector_.
|
inline |
dereference operator
References SparseVector< Value >::ValueProxy::ValueProxy().
|
inline |
const dereference operator
References SparseVector< Value >::ValueProxy::ValueProxy().
|
inline |
binary arithmetic +
|
inline |
binary arithmetic +
References SparseVector< Value >::SparseVectorIterator::position().
|
inline |
prefix increment
|
inline |
postfix increment
|
inline |
compound assignment +
|
inline |
binary arithmetic -
|
inline |
binary arithmetic -
References SparseVector< Value >::SparseVectorIterator::position().
|
inline |
prefix decrement
|
inline |
postfix decrement
|
inline |
compound assignment -
|
inline |
less than operator
References SparseVector< Value >::SparseVectorIterator::position().
|
inline |
less or equal than operator
References 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().
|
inline |
greater or equal than operator
References SparseVector< Value >::SparseVectorIterator::position().
|
inline |
indexing
References SparseVector< Value >::ValueProxy::ValueProxy().
|
inline |
find out at what position the iterator is; useful in combination with hop()
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::operator!=(), and SparseVector< Value >::SparseVectorIterator::operator=().
|
protected |
the position in the underlying map of SparseVector
Referenced by SparseVector< Value >::SparseVectorIterator::operator=().
|
protected |
the referred SparseVector
Referenced by SparseVector< Value >::SparseVectorIterator::operator!=(), and SparseVector< Value >::SparseVectorIterator::operator=().
OpenMS / TOPP release 2.3.0 | Documentation generated on Tue Jan 9 2018 18:22:12 using doxygen 1.8.13 |