VectorIterator Class Template Reference

#include <BigMatrix.h>

List of all members.


Detailed Description

template<class ELT, class VECTOR_CLASS>
class SimTK::VectorIterator< ELT, VECTOR_CLASS >

This is an iterator for iterating over the elements of a matrix.


Public Types

typedef ELT value_type
typedef int difference_type
typedef ELT & reference
typedef ELT * pointer
typedef std::random_access_iterator_tag iterator_category

Public Member Functions

 VectorIterator (VECTOR_CLASS &vector, int index)
 VectorIterator (const VectorIterator &iter)
VectorIteratoroperator= (const VectorIterator &iter)
ELT & operator * ()
ELT & operator[] (int i)
VectorIterator operator++ ()
VectorIterator operator++ (int)
VectorIterator operator-- ()
VectorIterator operator-- (int)
bool operator< (VectorIterator iter) const
bool operator> (VectorIterator iter) const
bool operator<= (VectorIterator iter) const
bool operator>= (VectorIterator iter) const
int operator- (VectorIterator iter) const
VectorIterator operator- (int n) const
VectorIterator operator+ (int n) const
bool operator== (VectorIterator iter) const
bool operator!= (VectorIterator iter) const


Member Typedef Documentation

typedef int difference_type

typedef std::random_access_iterator_tag iterator_category

typedef ELT* pointer

typedef ELT& reference

typedef ELT value_type


Constructor & Destructor Documentation

VectorIterator ( VECTOR_CLASS &  vector,
int  index 
) [inline]

VectorIterator ( const VectorIterator< ELT, VECTOR_CLASS > &  iter  )  [inline]


Member Function Documentation

ELT& operator * (  )  [inline]

bool operator!= ( VectorIterator< ELT, VECTOR_CLASS >  iter  )  const [inline]

VectorIterator operator+ ( int  n  )  const [inline]

VectorIterator operator++ ( int   )  [inline]

VectorIterator operator++ (  )  [inline]

VectorIterator operator- ( int  n  )  const [inline]

int operator- ( VectorIterator< ELT, VECTOR_CLASS >  iter  )  const [inline]

VectorIterator operator-- ( int   )  [inline]

VectorIterator operator-- (  )  [inline]

bool operator< ( VectorIterator< ELT, VECTOR_CLASS >  iter  )  const [inline]

bool operator<= ( VectorIterator< ELT, VECTOR_CLASS >  iter  )  const [inline]

VectorIterator& operator= ( const VectorIterator< ELT, VECTOR_CLASS > &  iter  )  [inline]

bool operator== ( VectorIterator< ELT, VECTOR_CLASS >  iter  )  const [inline]

bool operator> ( VectorIterator< ELT, VECTOR_CLASS >  iter  )  const [inline]

bool operator>= ( VectorIterator< ELT, VECTOR_CLASS >  iter  )  const [inline]

ELT& operator[] ( int  i  )  [inline]


The documentation for this class was generated from the following file:
Generated on Thu Feb 28 01:34:35 2008 for SimTKcommon by  doxygen 1.4.7