Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends

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>

List of all members.

Public Member Functions

 SparseVectorReverseIterator (const SparseVectorReverseIterator &source)
 copy constructor
virtual ~SparseVectorReverseIterator ()
 destructor
SparseVectorReverseIteratoroperator= (const SparseVectorReverseIterator &source)
 assignment operator
SparseVectorReverseIteratoroperator++ ()
 prefix increment
SparseVectorReverseIterator operator++ (int)
 postfix increment
SparseVectorReverseIteratoroperator-- ()
 prefix decrement
SparseVectorReverseIterator operator-- (int)
 postfix decrement
Value operator* ()
 dereference operator
ValueProxy operator[] (size_type n)
 indexing
SparseVectorReverseIteratoroperator+= (const size_type rhs)
 compound assignment +
SparseVectorReverseIteratoroperator-= (const size_type rhs)
 compound assignment -
SparseVectorReverseIterator operator+ (const size_type rhs) const
 binary arithmetic +
difference_type operator+ (const SparseVectorReverseIterator rhs) const
 binary arithmetic +
SparseVectorReverseIterator operator- (const size_type rhs) const
 binary arithmetic -
difference_type operator- (const SparseVectorReverseIterator rhs) const
 binary arithmetic -
bool operator!= (const SparseVectorReverseIterator &other)
 inequality operator
bool operator== (const SparseVectorReverseIterator &other)
 equality operator
bool operator< (const SparseVectorReverseIterator &other)
 less than operator
bool operator> (const SparseVectorReverseIterator &other)
 greater than operator
bool operator<= (const SparseVectorReverseIterator &other)
 less or equal than operator
bool operator>= (const SparseVectorReverseIterator &other)
 greater or equal than operator
SparseVectorReverseIteratorrhop ()
 go to the next nonempty position
size_type position () const
 find out at what position the iterator is; useful in combination with hop()
 SparseVectorReverseIterator (SparseVector &vector, size_type position)
 detailed constructor

Protected Attributes

size_type position_
 the position in the referred SparseVector

Private Member Functions

 SparseVectorReverseIterator ()
 Not implemented => private.

Private Attributes

SparseVectorvector_
 reffered sparseVector
reverse_map_const_iterator valrit_
 the position in the underlying map of SparseVector

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

SparseVectorReverseIterator ( const SparseVectorReverseIterator source  )  [inline]

copy constructor

virtual ~SparseVectorReverseIterator (  )  [inline, virtual]

destructor

SparseVectorReverseIterator ( SparseVector vector,
size_type  position 
) [inline]

detailed constructor

SparseVectorReverseIterator (  )  [private]

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++ ( int   )  [inline]
SparseVectorReverseIterator& operator++ (  )  [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]
SparseVector& vector_ [private]

OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:53 using doxygen 1.7.1