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

SparseVector::SparseVectorConstIterator Class Reference

List of all members.


Detailed Description

const_iterator for SparseVector

Public Member Functions

 SparseVectorConstIterator (const SparseVectorConstIterator &source)
 copy constructor
 SparseVectorConstIterator (const SparseVector::SparseVectorIterator &source)
 copy constructor from SparseVector::SparseVectorIterator
virtual ~SparseVectorConstIterator ()
 destructor
SparseVectorConstIteratoroperator++ ()
 postincrement operator
SparseVectorConstIterator operator++ (int)
 immidiate increment operator
double operator * ()
 derefence operator
SparseVectorConstIteratorhop ()
 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 SparseVectorConstIterator &other)
 inequality operator

Private Member Functions

 SparseVectorConstIterator ()
 default constructor
 SparseVectorConstIterator (const SparseVector &vector, int position)
 detailed constructor

Private Attributes

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

Friends

class SparseVector

Constructor & Destructor Documentation

SparseVectorConstIterator ( const SparseVectorConstIterator source  ) 

copy constructor

SparseVectorConstIterator ( const SparseVector::SparseVectorIterator source  ) 

copy constructor from SparseVector::SparseVectorIterator

virtual ~SparseVectorConstIterator (  )  [virtual]

destructor

SparseVectorConstIterator (  )  [private]

default constructor

SparseVectorConstIterator ( const SparseVector vector,
int  position 
) [private]

detailed constructor


Member Function Documentation

SparseVectorConstIterator& operator++ (  ) 

postincrement operator

SparseVectorConstIterator operator++ ( int   ) 

immidiate increment operator

double operator * (  ) 

derefence operator

SparseVectorConstIterator& 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 SparseVectorConstIterator other  ) 

inequality operator


Friends And Related Function Documentation

friend class SparseVector [friend]


Member Data Documentation

UInt position_ [private]

const 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