cisst-saw
Loading...
Searching...
No Matches
vctFixedStrideVectorIterator< _elementType, _stride > Class Template Reference

#include <vctFixedStrideVectorIterator.h>

Inheritance diagram for vctFixedStrideVectorIterator< _elementType, _stride >:
vctFixedStrideVectorConstIterator< _elementType, _stride >

Public Types

typedef vctFixedStrideVectorIterator< _elementType, _stride > ThisType
typedef vctFixedStrideVectorConstIterator< _elementType, _stride > BaseType
typedef BaseType::iterator_category iterator_category
Public Types inherited from vctFixedStrideVectorConstIterator< _elementType, _stride >
enum  { STRIDE = _stride }
typedef vctFixedStrideVectorConstIterator< _elementType, _stride > ThisType
typedef std::random_access_iterator_tag iterator_category

Public Member Functions

 VCT_CONTAINER_TRAITS_TYPEDEFS (_elementType)
 vctFixedStrideVectorIterator ()
 vctFixedStrideVectorIterator (value_type *dataPtr)
ThisTypeoperator++ ()
ThisType operator++ (int)
ThisTypeoperator-- ()
ThisType operator-- (int)
ThisTypeoperator+= (difference_type difference)
ThisTypeoperator-= (difference_type difference)
value_typeoperator[] (difference_type index) const
value_typeoperator* ()
value_typeoperator* () const
Public Member Functions inherited from vctFixedStrideVectorConstIterator< _elementType, _stride >
 VCT_CONTAINER_TRAITS_TYPEDEFS (_elementType)
 vctFixedStrideVectorConstIterator ()
 vctFixedStrideVectorConstIterator (value_type *dataPtr)
 vctFixedStrideVectorConstIterator (const value_type *dataPtr)
ThisTypeoperator++ ()
ThisType operator++ (int)
ThisTypeoperator-- ()
ThisType operator-- (int)
ThisTypeoperator+= (difference_type difference)
ThisTypeoperator-= (difference_type difference)
difference_type operator- (const ThisType &other) const
const value_typeoperator[] (difference_type index) const
const value_typeoperator* () const
bool operator< (const ThisType &other) const
bool operator<= (const ThisType &other) const
bool operator== (const ThisType &other) const
bool operator> (const ThisType &other) const
bool operator>= (const ThisType &other) const
bool operator!= (const ThisType &other) const

Additional Inherited Members

Protected Attributes inherited from vctFixedStrideVectorConstIterator< _elementType, _stride >
value_typeDataPtr

Detailed Description

template<class _elementType, vct::stride_type _stride>
class vctFixedStrideVectorIterator< _elementType, _stride >

The non-const iterator with a fixed stride.

See also
vctFixedStrideVectorConstIterator

Member Typedef Documentation

◆ BaseType

template<class _elementType, vct::stride_type _stride>
typedef vctFixedStrideVectorConstIterator<_elementType, _stride> vctFixedStrideVectorIterator< _elementType, _stride >::BaseType

◆ iterator_category

template<class _elementType, vct::stride_type _stride>
typedef BaseType::iterator_category vctFixedStrideVectorIterator< _elementType, _stride >::iterator_category

◆ ThisType

template<class _elementType, vct::stride_type _stride>
typedef vctFixedStrideVectorIterator<_elementType, _stride> vctFixedStrideVectorIterator< _elementType, _stride >::ThisType

Constructor & Destructor Documentation

◆ vctFixedStrideVectorIterator() [1/2]

template<class _elementType, vct::stride_type _stride>
vctFixedStrideVectorIterator< _elementType, _stride >::vctFixedStrideVectorIterator ( )
inline

Default constructor: create an uninitialized object

◆ vctFixedStrideVectorIterator() [2/2]

template<class _elementType, vct::stride_type _stride>
vctFixedStrideVectorIterator< _elementType, _stride >::vctFixedStrideVectorIterator ( value_type * dataPtr)
inlineexplicit

Constructor taking a non-const element pointer. Read and write operations on the refered object are permitted. Note that there is no constructor that takes a const element pointer.

Member Function Documentation

◆ operator*() [1/2]

template<class _elementType, vct::stride_type _stride>
value_type & vctFixedStrideVectorIterator< _elementType, _stride >::operator* ( )
inline

Add non-const version of unary operator *

◆ operator*() [2/2]

template<class _elementType, vct::stride_type _stride>
value_type & vctFixedStrideVectorIterator< _elementType, _stride >::operator* ( ) const
inline

◆ operator++() [1/2]

template<class _elementType, vct::stride_type _stride>
ThisType & vctFixedStrideVectorIterator< _elementType, _stride >::operator++ ( )
inline

Redefine operator++ to return vctFixedStrideVectorIterator instead of vctFixedStrideVectorConstIterator

◆ operator++() [2/2]

template<class _elementType, vct::stride_type _stride>
ThisType vctFixedStrideVectorIterator< _elementType, _stride >::operator++ ( int )
inline

Redefine operator++ to return vctFixedStrideVectorIterator instead of vctFixedStrideVectorConstIterator

◆ operator+=()

template<class _elementType, vct::stride_type _stride>
ThisType & vctFixedStrideVectorIterator< _elementType, _stride >::operator+= ( difference_type difference)
inline

Redefine operator+= to return vctFixedStrideVectorIterator instead of vctFixedStrideVectorConstIterator

◆ operator--() [1/2]

template<class _elementType, vct::stride_type _stride>
ThisType & vctFixedStrideVectorIterator< _elementType, _stride >::operator-- ( )
inline

Redefine operator-- to return vctFixedStrideVectorIterator instead of vctFixedStrideVectorConstIterator

◆ operator--() [2/2]

template<class _elementType, vct::stride_type _stride>
ThisType vctFixedStrideVectorIterator< _elementType, _stride >::operator-- ( int )
inline

Redefine operator-- to return vctFixedStrideVectorIterator instead of vctFixedStrideVectorConstIterator

◆ operator-=()

template<class _elementType, vct::stride_type _stride>
ThisType & vctFixedStrideVectorIterator< _elementType, _stride >::operator-= ( difference_type difference)
inline

Redefine operator-= to return vctFixedStrideVectorIterator instead of vctFixedStrideVectorConstIterator

◆ operator[]()

template<class _elementType, vct::stride_type _stride>
value_type & vctFixedStrideVectorIterator< _elementType, _stride >::operator[] ( difference_type index) const
inline

Add non-const version of operator []

◆ VCT_CONTAINER_TRAITS_TYPEDEFS()

template<class _elementType, vct::stride_type _stride>
vctFixedStrideVectorIterator< _elementType, _stride >::VCT_CONTAINER_TRAITS_TYPEDEFS ( _elementType )

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