Simbody  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SimTK::VectorIterator< ELT, VECTOR_CLASS > Class Template Reference

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

#include <BigMatrix.h>

Public Types

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

Public Member Functions

 VectorIterator (VECTOR_CLASS &vector, ptrdiff_t index)
 
 VectorIterator (const VectorIterator &iter)
 
VectorIteratoroperator= (const VectorIterator &iter)
 
ELT & operator* ()
 
ELT & operator[] (ptrdiff_t 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
 
ptrdiff_t operator- (VectorIterator iter) const
 
VectorIterator operator- (ptrdiff_t n) const
 
VectorIterator operator+ (ptrdiff_t n) const
 
bool operator== (VectorIterator iter) const
 
bool operator!= (VectorIterator iter) const
 

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 Vector.

Member Typedef Documentation

template<class ELT , class VECTOR_CLASS >
typedef ELT SimTK::VectorIterator< ELT, VECTOR_CLASS >::value_type
template<class ELT , class VECTOR_CLASS >
typedef ptrdiff_t SimTK::VectorIterator< ELT, VECTOR_CLASS >::difference_type
template<class ELT , class VECTOR_CLASS >
typedef ELT& SimTK::VectorIterator< ELT, VECTOR_CLASS >::reference
template<class ELT , class VECTOR_CLASS >
typedef ELT* SimTK::VectorIterator< ELT, VECTOR_CLASS >::pointer
template<class ELT , class VECTOR_CLASS >
typedef std::random_access_iterator_tag SimTK::VectorIterator< ELT, VECTOR_CLASS >::iterator_category

Constructor & Destructor Documentation

template<class ELT , class VECTOR_CLASS >
SimTK::VectorIterator< ELT, VECTOR_CLASS >::VectorIterator ( VECTOR_CLASS &  vector,
ptrdiff_t  index 
)
inline
template<class ELT , class VECTOR_CLASS >
SimTK::VectorIterator< ELT, VECTOR_CLASS >::VectorIterator ( const VectorIterator< ELT, VECTOR_CLASS > &  iter)
inline

Member Function Documentation

template<class ELT , class VECTOR_CLASS >
VectorIterator& SimTK::VectorIterator< ELT, VECTOR_CLASS >::operator= ( const VectorIterator< ELT, VECTOR_CLASS > &  iter)
inline
template<class ELT , class VECTOR_CLASS >
ELT& SimTK::VectorIterator< ELT, VECTOR_CLASS >::operator* ( )
inline
template<class ELT , class VECTOR_CLASS >
ELT& SimTK::VectorIterator< ELT, VECTOR_CLASS >::operator[] ( ptrdiff_t  i)
inline
template<class ELT , class VECTOR_CLASS >
VectorIterator SimTK::VectorIterator< ELT, VECTOR_CLASS >::operator++ ( )
inline
template<class ELT , class VECTOR_CLASS >
VectorIterator SimTK::VectorIterator< ELT, VECTOR_CLASS >::operator++ ( int  )
inline
template<class ELT , class VECTOR_CLASS >
VectorIterator SimTK::VectorIterator< ELT, VECTOR_CLASS >::operator-- ( )
inline
template<class ELT , class VECTOR_CLASS >
VectorIterator SimTK::VectorIterator< ELT, VECTOR_CLASS >::operator-- ( int  )
inline
template<class ELT , class VECTOR_CLASS >
bool SimTK::VectorIterator< ELT, VECTOR_CLASS >::operator< ( VectorIterator< ELT, VECTOR_CLASS >  iter) const
inline
template<class ELT , class VECTOR_CLASS >
bool SimTK::VectorIterator< ELT, VECTOR_CLASS >::operator> ( VectorIterator< ELT, VECTOR_CLASS >  iter) const
inline
template<class ELT , class VECTOR_CLASS >
bool SimTK::VectorIterator< ELT, VECTOR_CLASS >::operator<= ( VectorIterator< ELT, VECTOR_CLASS >  iter) const
inline
template<class ELT , class VECTOR_CLASS >
bool SimTK::VectorIterator< ELT, VECTOR_CLASS >::operator>= ( VectorIterator< ELT, VECTOR_CLASS >  iter) const
inline
template<class ELT , class VECTOR_CLASS >
ptrdiff_t SimTK::VectorIterator< ELT, VECTOR_CLASS >::operator- ( VectorIterator< ELT, VECTOR_CLASS >  iter) const
inline
template<class ELT , class VECTOR_CLASS >
VectorIterator SimTK::VectorIterator< ELT, VECTOR_CLASS >::operator- ( ptrdiff_t  n) const
inline
template<class ELT , class VECTOR_CLASS >
VectorIterator SimTK::VectorIterator< ELT, VECTOR_CLASS >::operator+ ( ptrdiff_t  n) const
inline
template<class ELT , class VECTOR_CLASS >
bool SimTK::VectorIterator< ELT, VECTOR_CLASS >::operator== ( VectorIterator< ELT, VECTOR_CLASS >  iter) const
inline
template<class ELT , class VECTOR_CLASS >
bool SimTK::VectorIterator< ELT, VECTOR_CLASS >::operator!= ( VectorIterator< ELT, VECTOR_CLASS >  iter) const
inline

The documentation for this class was generated from the following file: