Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends | List of all members
SparseVector< Value >::SparseVectorReverseIterator Class Reference

random access reverse iterator for SparseVector including the hop() function to jump to the next non-sparse element More...

#include <OpenMS/DATASTRUCTURES/SparseVector.h>

Public Member Functions

 SparseVectorReverseIterator (const SparseVectorReverseIterator &source)
 copy constructor More...
 
virtual ~SparseVectorReverseIterator ()
 destructor More...
 
SparseVectorReverseIteratoroperator= (const SparseVectorReverseIterator &source)
 assignment operator More...
 
SparseVectorReverseIteratoroperator++ ()
 prefix increment More...
 
SparseVectorReverseIterator operator++ (int)
 postfix increment More...
 
SparseVectorReverseIteratoroperator-- ()
 prefix decrement More...
 
SparseVectorReverseIterator operator-- (int)
 postfix decrement More...
 
Value operator* ()
 dereference operator More...
 
ValueProxy operator[] (size_type n)
 indexing More...
 
SparseVectorReverseIteratoroperator+= (const size_type rhs)
 compound assignment + More...
 
SparseVectorReverseIteratoroperator-= (const size_type rhs)
 compound assignment - More...
 
SparseVectorReverseIterator operator+ (const size_type rhs) const
 binary arithmetic + More...
 
difference_type operator+ (const SparseVectorReverseIterator rhs) const
 binary arithmetic + More...
 
SparseVectorReverseIterator operator- (const size_type rhs) const
 binary arithmetic - More...
 
difference_type operator- (const SparseVectorReverseIterator rhs) const
 binary arithmetic - More...
 
bool operator!= (const SparseVectorReverseIterator &other)
 inequality operator More...
 
bool operator== (const SparseVectorReverseIterator &other)
 equality operator More...
 
bool operator< (const SparseVectorReverseIterator &other)
 less than operator More...
 
bool operator> (const SparseVectorReverseIterator &other)
 greater than operator More...
 
bool operator<= (const SparseVectorReverseIterator &other)
 less or equal than operator More...
 
bool operator>= (const SparseVectorReverseIterator &other)
 greater or equal than operator More...
 
SparseVectorReverseIteratorrhop ()
 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...
 
 SparseVectorReverseIterator (SparseVector &vector, size_type position)
 detailed constructor More...
 

Protected Attributes

size_type position_
 the position in the referred SparseVector More...
 

Private Member Functions

 SparseVectorReverseIterator ()
 Not implemented => private. More...
 

Private Attributes

SparseVectorvector_
 referred sparseVector More...
 
reverse_map_const_iterator valrit_
 the position in the underlying map of SparseVector More...
 

Friends

class SparseVector< Value >
 
class SparseVectorConstReverseIterator
 

Detailed Description

template<typename Value>
class OpenMS::SparseVector< Value >::SparseVectorReverseIterator

random access reverse iterator for SparseVector including the hop() function to jump to the next non-sparse element

Constructor & Destructor Documentation

copy constructor

virtual ~SparseVectorReverseIterator ( )
inlinevirtual

destructor

SparseVectorReverseIterator ( SparseVector vector,
size_type  position 
)
inline

detailed constructor

Member Function Documentation

bool operator!= ( const SparseVectorReverseIterator other)
inline
Value operator* ( )
inline
SparseVectorReverseIterator operator+ ( const size_type  rhs) const
inline
difference_type operator+ ( const SparseVectorReverseIterator  rhs) const
inline
SparseVectorReverseIterator& operator++ ( )
inline
SparseVectorReverseIterator operator++ ( int  )
inline
SparseVectorReverseIterator& operator+= ( const size_type  rhs)
inline
SparseVectorReverseIterator operator- ( const size_type  rhs) const
inline
difference_type operator- ( const SparseVectorReverseIterator  rhs) const
inline
SparseVectorReverseIterator& operator-- ( )
inline
SparseVectorReverseIterator operator-- ( int  )
inline
SparseVectorReverseIterator& operator-= ( const size_type  rhs)
inline
bool operator< ( const SparseVectorReverseIterator other)
inline
bool operator<= ( const SparseVectorReverseIterator other)
inline

less or equal than operator

References SparseVector< Value >::SparseVectorReverseIterator::position().

SparseVectorReverseIterator& operator= ( const SparseVectorReverseIterator source)
inline
bool operator== ( const SparseVectorReverseIterator other)
inline

equality operator

bool operator> ( const SparseVectorReverseIterator other)
inline
bool operator>= ( const SparseVectorReverseIterator other)
inline

greater or equal than operator

References SparseVector< Value >::SparseVectorReverseIterator::position().

ValueProxy operator[] ( size_type  n)
inline
size_type position ( ) const
inline
SparseVectorReverseIterator& rhop ( )
inline

Friends And Related Function Documentation

friend class SparseVector< Value >
friend
friend class SparseVectorConstReverseIterator
friend

Member Data Documentation

size_type position_
protected
reverse_map_const_iterator valrit_
private
SparseVector& vector_
private

OpenMS / TOPP release 2.0.0 Documentation generated on Tue Aug 25 2015 05:54:07 using doxygen 1.8.9.1