Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages

SparseVector::SparseVectorIterator Class Reference

List of all members.


Detailed Description

iterator for SparseVector

Public Member Functions

 SparseVectorIterator (const SparseVectorIterator &source)
 copy constructor
virtual ~SparseVectorIterator ()
 destructor
SparseVectorIteratoroperator++ ()
SparseVectorIterator operator++ (int)
DoubleProxy operator * ()
SparseVectorIteratorhop ()
 go to the next nonempty position
UInt position () const
 find out at what position the iterator is; useful in combination with hop()
bool operator!= (const SparseVectorIterator &other)
 inequality operator

Private Member Functions

 SparseVectorIterator ()
 default constructor
 SparseVectorIterator (SparseVector &vector, int position)

Private Attributes

UInt position_
SparseVectorvector_
std::map< UInt, double >
::const_iterator 
valit_

Friends

class SparseVector
class SparseVector::SparseVectorConstIterator

Constructor & Destructor Documentation

SparseVectorIterator ( const SparseVectorIterator source  ) 

copy constructor

virtual ~SparseVectorIterator (  )  [virtual]

destructor

SparseVectorIterator (  )  [private]

default constructor

SparseVectorIterator ( SparseVector vector,
int  position 
) [private]


Member Function Documentation

SparseVectorIterator& operator++ (  ) 

SparseVectorIterator operator++ ( int   ) 

DoubleProxy operator * (  ) 

SparseVectorIterator& hop (  ) 

go to the next nonempty position

UInt position (  )  const

find out at what position the iterator is; useful in combination with hop()

bool operator!= ( const SparseVectorIterator other  ) 

inequality operator


Friends And Related Function Documentation

friend class SparseVector [friend]

friend class SparseVector::SparseVectorConstIterator [friend]


Member Data Documentation

UInt position_ [private]

SparseVector& vector_ [private]

std::map<UInt,double>::const_iterator valit_ [private]


The documentation for this class was generated from the following file:
Generated Tue Apr 1 15:36:44 2008 -- using doxygen 1.5.4 OpenMS / TOPP 1.1