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

SparseVector< Value >::SparseVectorConstIterator Class Reference

const_iterator for SparseVector More...

#include <OpenMS/DATASTRUCTURES/SparseVector.h>

List of all members.

Public Member Functions

 SparseVectorConstIterator (const SparseVectorConstIterator &source)
 copy constructor
 SparseVectorConstIterator (const SparseVectorIterator &source)
 copy constructor from SparseVector::SparseVectorIterator
virtual ~SparseVectorConstIterator ()
 destructor
SparseVectorConstIteratoroperator= (const SparseVectorConstIterator &source)
 assignment operator
SparseVectorConstIteratoroperator++ ()
 postincrement operator
SparseVectorConstIterator operator++ (int)
 immidiate increment operator
SparseVectorConstIteratoroperator-- ()
 postincrement operator
SparseVectorConstIterator operator-- (int)
 immidiate increment operator
const Value operator* () const
 derefence operator
const ValueProxy operator[] (size_type n) const
SparseVectorConstIteratoroperator+= (const size_type rhs)
 compound assignment +
SparseVectorConstIteratoroperator-= (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
SparseVectorConstIteratorhop ()
 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 SparseVectorvector_
 referring to this SparseVector
map_const_iterator valit_
 the position in the underlying map of SparseVector

Friends

class SparseVector< Value >
class SparseVectorIterator

Detailed Description

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

const_iterator for SparseVector


Constructor & Destructor Documentation

SparseVectorConstIterator ( const SparseVectorConstIterator source  )  [inline]

copy constructor

SparseVectorConstIterator ( const SparseVectorIterator source  )  [inline]

copy constructor from SparseVector::SparseVectorIterator

virtual ~SparseVectorConstIterator (  )  [inline, virtual]

destructor

SparseVectorConstIterator (  )  [protected]
SparseVectorConstIterator ( const SparseVector vector,
size_type  position 
) [inline, protected]

detailed constructor


Member Function Documentation

SparseVectorConstIterator& hop (  )  [inline]
bool operator!= ( const SparseVectorConstIterator other  )  [inline]
const Value operator* (  )  const [inline]
SparseVectorConstIterator operator+ ( const size_type  rhs  )  const [inline]
SparseVectorConstIterator& operator++ (  )  [inline]
SparseVectorConstIterator operator++ ( int   )  [inline]
SparseVectorConstIterator& operator+= ( const size_type  rhs  )  [inline]
SparseVectorConstIterator operator- ( const size_type  rhs  )  const [inline]
SparseVectorConstIterator& operator-- (  )  [inline]
SparseVectorConstIterator operator-- ( int   )  [inline]
SparseVectorConstIterator& operator-= ( const size_type  rhs  )  [inline]
bool operator< ( const SparseVectorConstIterator other  )  [inline]
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]
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]

Friends And Related Function Documentation

friend class SparseVector< Value > [friend]
friend class SparseVectorIterator [friend]

Member Data Documentation

size_type position_ [mutable, private]
const SparseVector& vector_ [private]

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