const_iterator for SparseVector More...
#include <OpenMS/DATASTRUCTURES/SparseVector.h>
Public Member Functions | |
| SparseVectorConstIterator (const SparseVectorConstIterator &source) | |
| copy constructor | |
| SparseVectorConstIterator (const SparseVectorIterator &source) | |
| copy constructor from SparseVector::SparseVectorIterator | |
| virtual | ~SparseVectorConstIterator () |
| destructor | |
| SparseVectorConstIterator & | operator= (const SparseVectorConstIterator &source) |
| assignment operator | |
| SparseVectorConstIterator & | operator++ () |
| postincrement operator | |
| SparseVectorConstIterator | operator++ (int) |
| immidiate increment operator | |
| SparseVectorConstIterator & | operator-- () |
| postincrement operator | |
| SparseVectorConstIterator | operator-- (int) |
| immidiate increment operator | |
| const Value | operator* () const |
| derefence operator | |
| const ValueProxy | operator[] (size_type n) const |
| SparseVectorConstIterator & | operator+= (const size_type rhs) |
| compound assignment + | |
| SparseVectorConstIterator & | operator-= (const size_type rhs) |
| compound assignment - | |
| SparseVectorConstIterator | operator+ (const size_type rhs) const |
| binary arithmetic + | |
| SparseVectorConstIterator | operator- (const size_type rhs) const |
| binary arithmetic - | |
| bool | operator!= (const SparseVectorConstIterator &other) |
| inequality operator | |
| bool | operator== (const SparseVectorConstIterator &other) |
| equality operator | |
| bool | operator< (const SparseVectorConstIterator &other) |
| less than operator | |
| bool | operator> (const SparseVectorConstIterator &other) |
| greater than operator | |
| bool | operator<= (const SparseVectorConstIterator &other) |
| less or equal than operator | |
| bool | operator>= (const SparseVectorConstIterator &other) |
| greater or equal than operator | |
| SparseVectorConstIterator & | hop () |
| go to the next nonempty position | |
| size_type | position () const |
| find out at what position the iterator is, useful in combination with hop() | |
Protected Member Functions | |
| SparseVectorConstIterator () | |
| default constructor | |
| SparseVectorConstIterator (const SparseVector &vector, size_type position) | |
| detailed constructor | |
Private Attributes | |
| size_type | position_ |
| position in reffered SparseVector | |
| const SparseVector & | vector_ |
| referring to this SparseVector | |
| map_const_iterator | valit_ |
| the position in the underlying map of SparseVector | |
Friends | |
| class | SparseVector< Value > |
| class | SparseVectorIterator |
const_iterator for SparseVector
| SparseVectorConstIterator | ( | const SparseVectorConstIterator & | source | ) | [inline] |
copy constructor
| SparseVectorConstIterator | ( | const SparseVectorIterator & | source | ) | [inline] |
copy constructor from SparseVector::SparseVectorIterator
| virtual ~SparseVectorConstIterator | ( | ) | [inline, virtual] |
destructor
| SparseVectorConstIterator | ( | ) | [protected] |
default constructor
Referenced by SparseVector< Value >::SparseVectorConstIterator::operator+(), and SparseVector< Value >::SparseVectorConstIterator::operator-().
| SparseVectorConstIterator | ( | const SparseVector & | vector, | |
| size_type | position | |||
| ) | [inline, protected] |
detailed constructor
| SparseVectorConstIterator& hop | ( | ) | [inline] |
| bool operator!= | ( | const SparseVectorConstIterator & | other | ) | [inline] |
inequality operator
References SparseVector< Value >::SparseVectorConstIterator::position_, and SparseVector< Value >::SparseVectorConstIterator::vector_.
| const Value operator* | ( | ) | const [inline] |
derefence operator
References SparseVector< Value >::SparseVectorConstIterator::position_, SparseVector< Value >::size_, and SparseVector< Value >::SparseVectorConstIterator::vector_.
| SparseVectorConstIterator operator+ | ( | const size_type | rhs | ) | const [inline] |
| SparseVectorConstIterator& operator++ | ( | ) | [inline] |
postincrement operator
References SparseVector< Value >::SparseVectorConstIterator::position_, SparseVector< Value >::size_, and SparseVector< Value >::SparseVectorConstIterator::vector_.
| SparseVectorConstIterator operator++ | ( | int | ) | [inline] |
immidiate increment operator
References SparseVector< Value >::SparseVectorConstIterator::position_, SparseVector< Value >::size_, and SparseVector< Value >::SparseVectorConstIterator::vector_.
| SparseVectorConstIterator& operator+= | ( | const size_type | rhs | ) | [inline] |
compound assignment +
References SparseVector< Value >::SparseVectorConstIterator::position_.
| SparseVectorConstIterator operator- | ( | const size_type | rhs | ) | const [inline] |
| SparseVectorConstIterator& operator-- | ( | ) | [inline] |
postincrement operator
References SparseVector< Value >::SparseVectorConstIterator::position_, SparseVector< Value >::size_, and SparseVector< Value >::SparseVectorConstIterator::vector_.
| SparseVectorConstIterator operator-- | ( | int | ) | [inline] |
immidiate increment operator
References SparseVector< Value >::SparseVectorConstIterator::position_, SparseVector< Value >::size_, and SparseVector< Value >::SparseVectorConstIterator::vector_.
| SparseVectorConstIterator& operator-= | ( | const size_type | rhs | ) | [inline] |
compound assignment -
References SparseVector< Value >::SparseVectorConstIterator::position_.
| bool operator< | ( | const SparseVectorConstIterator & | other | ) | [inline] |
less than operator
References SparseVector< Value >::SparseVectorConstIterator::position().
| bool operator<= | ( | const SparseVectorConstIterator & | other | ) | [inline] |
less or equal than operator
References SparseVector< Value >::SparseVectorConstIterator::position().
| SparseVectorConstIterator& operator= | ( | const SparseVectorConstIterator & | source | ) | [inline] |
| bool operator== | ( | const SparseVectorConstIterator & | other | ) | [inline] |
equality operator
| bool operator> | ( | const SparseVectorConstIterator & | other | ) | [inline] |
greater than operator
References SparseVector< Value >::SparseVectorConstIterator::position().
| bool operator>= | ( | const SparseVectorConstIterator & | other | ) | [inline] |
greater or equal than operator
References SparseVector< Value >::SparseVectorConstIterator::position().
| const ValueProxy operator[] | ( | size_type | n | ) | const [inline] |
| size_type position | ( | ) | const [inline] |
find out at what position the iterator is, useful in combination with hop()
References SparseVector< Value >::SparseVectorConstIterator::position_.
Referenced by SparseVector< Value >::SparseVectorConstIterator::operator<(), SparseVector< Value >::SparseVectorConstIterator::operator<=(), SparseVector< Value >::SparseVectorConstIterator::operator>(), and SparseVector< Value >::SparseVectorConstIterator::operator>=().
friend class SparseVector< Value > [friend] |
friend class SparseVectorIterator [friend] |
position in reffered SparseVector
Referenced by SparseVector< Value >::SparseVectorConstIterator::hop(), SparseVector< Value >::SparseVectorConstIterator::operator!=(), SparseVector< Value >::SparseVectorConstIterator::operator*(), SparseVector< Value >::SparseVectorConstIterator::operator+(), SparseVector< Value >::SparseVectorConstIterator::operator++(), SparseVector< Value >::SparseVectorConstIterator::operator+=(), SparseVector< Value >::SparseVectorConstIterator::operator-(), SparseVector< Value >::SparseVectorConstIterator::operator--(), SparseVector< Value >::SparseVectorConstIterator::operator-=(), SparseVector< Value >::SparseVectorConstIterator::operator=(), SparseVector< Value >::SparseVectorConstIterator::operator[](), and SparseVector< Value >::SparseVectorConstIterator::position().
map_const_iterator valit_ [private] |
the position in the underlying map of SparseVector
Referenced by SparseVector< Value >::SparseVectorConstIterator::hop(), and SparseVector< Value >::SparseVectorConstIterator::operator=().
const SparseVector& vector_ [private] |
referring to this SparseVector
Referenced by SparseVector< Value >::SparseVectorConstIterator::hop(), SparseVector< Value >::SparseVectorConstIterator::operator!=(), SparseVector< Value >::SparseVectorConstIterator::operator*(), SparseVector< Value >::SparseVectorConstIterator::operator+(), SparseVector< Value >::SparseVectorConstIterator::operator++(), SparseVector< Value >::SparseVectorConstIterator::operator-(), SparseVector< Value >::SparseVectorConstIterator::operator--(), SparseVector< Value >::SparseVectorConstIterator::operator=(), and SparseVector< Value >::SparseVectorConstIterator::operator[]().
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:42:53 using doxygen 1.7.1 |