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

const_iterator for SparseVector More...

#include <OpenMS/DATASTRUCTURES/SparseVector.h>

Public Member Functions

 SparseVectorConstIterator (const SparseVectorConstIterator &source)
 copy constructor More...
 
 SparseVectorConstIterator (const SparseVectorIterator &source)
 copy constructor from SparseVector::SparseVectorIterator More...
 
virtual ~SparseVectorConstIterator ()
 destructor More...
 
SparseVectorConstIteratoroperator= (const SparseVectorConstIterator &source)
 assignment operator More...
 
SparseVectorConstIteratoroperator++ ()
 postincrement operator More...
 
SparseVectorConstIterator operator++ (int)
 immediate increment operator More...
 
SparseVectorConstIteratoroperator-- ()
 postincrement operator More...
 
SparseVectorConstIterator operator-- (int)
 immediate increment operator More...
 
const Value operator* () const
 dereference operator More...
 
const ValueProxy operator[] (size_type n) const
 
SparseVectorConstIteratoroperator+= (const size_type rhs)
 compound assignment + More...
 
SparseVectorConstIteratoroperator-= (const size_type rhs)
 compound assignment - More...
 
SparseVectorConstIterator operator+ (const size_type rhs) const
 binary arithmetic + More...
 
SparseVectorConstIterator operator- (const size_type rhs) const
 binary arithmetic - More...
 
bool operator!= (const SparseVectorConstIterator &other)
 inequality operator More...
 
bool operator== (const SparseVectorConstIterator &other)
 equality operator More...
 
bool operator< (const SparseVectorConstIterator &other)
 less than operator More...
 
bool operator> (const SparseVectorConstIterator &other)
 greater than operator More...
 
bool operator<= (const SparseVectorConstIterator &other)
 less or equal than operator More...
 
bool operator>= (const SparseVectorConstIterator &other)
 greater or equal than operator More...
 
SparseVectorConstIteratorhop ()
 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

 SparseVectorConstIterator ()
 default constructor More...
 
 SparseVectorConstIterator (const SparseVector &vector, size_type position)
 detailed constructor More...
 

Private Attributes

size_type position_
 position in referred SparseVector More...
 
const SparseVectorvector_
 referring to this SparseVector More...
 
map_const_iterator valit_
 the position in the underlying map of SparseVector More...
 

Friends

class SparseVector< Value >
 
class SparseVectorIterator
 

Detailed Description

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

const_iterator for SparseVector

Constructor & Destructor Documentation

◆ SparseVectorConstIterator() [1/4]

copy constructor

◆ SparseVectorConstIterator() [2/4]

SparseVectorConstIterator ( const SparseVectorIterator source)
inline

copy constructor from SparseVector::SparseVectorIterator

◆ ~SparseVectorConstIterator()

virtual ~SparseVectorConstIterator ( )
inlinevirtual

destructor

◆ SparseVectorConstIterator() [3/4]

default constructor

◆ SparseVectorConstIterator() [4/4]

SparseVectorConstIterator ( const SparseVector vector,
size_type  position 
)
inlineprotected

detailed constructor

Member Function Documentation

◆ hop()

SparseVectorConstIterator& hop ( )
inline

go to the next nonempty position

◆ operator!=()

bool operator!= ( const SparseVectorConstIterator other)
inline

◆ operator*()

const Value operator* ( ) const
inline

dereference operator

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

◆ operator+()

SparseVectorConstIterator operator+ ( const size_type  rhs) const
inline

binary arithmetic +

◆ operator++() [1/2]

SparseVectorConstIterator& operator++ ( )
inline

postincrement operator

◆ operator++() [2/2]

SparseVectorConstIterator operator++ ( int  )
inline

immediate increment operator

◆ operator+=()

SparseVectorConstIterator& operator+= ( const size_type  rhs)
inline

compound assignment +

◆ operator-()

SparseVectorConstIterator operator- ( const size_type  rhs) const
inline

binary arithmetic -

◆ operator--() [1/2]

SparseVectorConstIterator& operator-- ( )
inline

postincrement operator

◆ operator--() [2/2]

SparseVectorConstIterator operator-- ( int  )
inline

immediate increment operator

◆ operator-=()

SparseVectorConstIterator& operator-= ( const size_type  rhs)
inline

compound assignment -

◆ operator<()

bool operator< ( const SparseVectorConstIterator other)
inline

◆ operator<=()

bool operator<= ( const SparseVectorConstIterator other)
inline

less or equal than operator

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

◆ operator=()

SparseVectorConstIterator& operator= ( const SparseVectorConstIterator source)
inline

◆ operator==()

bool operator== ( const SparseVectorConstIterator other)
inline

equality operator

◆ operator>()

bool operator> ( const SparseVectorConstIterator other)
inline

◆ operator>=()

bool operator>= ( const SparseVectorConstIterator other)
inline

greater or equal than operator

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

◆ operator[]()

const ValueProxy operator[] ( size_type  n) const
inline

◆ position()

size_type position ( ) const
inline

Friends And Related Function Documentation

◆ SparseVector< Value >

friend class SparseVector< Value >
friend

◆ SparseVectorIterator

friend class SparseVectorIterator
friend

Member Data Documentation

◆ position_

size_type position_
mutableprivate

◆ valit_

map_const_iterator valit_
private

the position in the underlying map of SparseVector

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

◆ vector_

const SparseVector& vector_
private

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