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

◆ SparseVectorReverseIterator() [1/3]

copy constructor

◆ ~SparseVectorReverseIterator()

virtual ~SparseVectorReverseIterator ( )
inlinevirtual

destructor

◆ SparseVectorReverseIterator() [2/3]

SparseVectorReverseIterator ( SparseVector vector,
size_type  position 
)
inline

detailed constructor

◆ SparseVectorReverseIterator() [3/3]

Not implemented => private.

Member Function Documentation

◆ operator!=()

bool operator!= ( const SparseVectorReverseIterator other)
inline

◆ operator*()

Value operator* ( )
inline

dereference operator

References SparseVector< Value >::ValueProxy::ValueProxy().

◆ operator+() [1/2]

SparseVectorReverseIterator operator+ ( const size_type  rhs) const
inline

binary arithmetic +

◆ operator+() [2/2]

difference_type operator+ ( const SparseVectorReverseIterator  rhs) const
inline

◆ operator++() [1/2]

SparseVectorReverseIterator& operator++ ( )
inline

prefix increment

◆ operator++() [2/2]

SparseVectorReverseIterator operator++ ( int  )
inline

postfix increment

◆ operator+=()

SparseVectorReverseIterator& operator+= ( const size_type  rhs)
inline

compound assignment +

◆ operator-() [1/2]

SparseVectorReverseIterator operator- ( const size_type  rhs) const
inline

binary arithmetic -

◆ operator-() [2/2]

difference_type operator- ( const SparseVectorReverseIterator  rhs) const
inline

◆ operator--() [1/2]

SparseVectorReverseIterator& operator-- ( )
inline

prefix decrement

◆ operator--() [2/2]

SparseVectorReverseIterator operator-- ( int  )
inline

postfix decrement

◆ operator-=()

SparseVectorReverseIterator& operator-= ( const size_type  rhs)
inline

compound assignment -

◆ operator<()

bool operator< ( const SparseVectorReverseIterator other)
inline

◆ operator<=()

bool operator<= ( const SparseVectorReverseIterator other)
inline

less or equal than operator

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

◆ operator=()

SparseVectorReverseIterator& operator= ( const SparseVectorReverseIterator source)
inline

◆ operator==()

bool operator== ( const SparseVectorReverseIterator other)
inline

equality operator

◆ operator>()

bool operator> ( const SparseVectorReverseIterator other)
inline

◆ operator>=()

bool operator>= ( const SparseVectorReverseIterator other)
inline

greater or equal than operator

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

◆ operator[]()

ValueProxy operator[] ( size_type  n)
inline

◆ position()

size_type position ( ) const
inline

◆ rhop()

SparseVectorReverseIterator& rhop ( )
inline

go to the next nonempty position

Friends And Related Function Documentation

◆ SparseVector< Value >

friend class SparseVector< Value >
friend

◆ SparseVectorConstReverseIterator

friend class SparseVectorConstReverseIterator
friend

Member Data Documentation

◆ position_

size_type position_
protected

◆ valrit_

reverse_map_const_iterator valrit_
private

the position in the underlying map of SparseVector

Referenced by SparseVector< Value >::SparseVectorReverseIterator::operator=().

◆ vector_

SparseVector& vector_
private

OpenMS / TOPP release 2.3.0 Documentation generated on Tue Jan 9 2018 18:22:12 using doxygen 1.8.13