22 #ifndef _vctFixedStrideVectorIterator_h
23 #define _vctFixedStrideVectorIterator_h
61 template <
class _elementType, vct::str
ide_type _str
ide>
63 public std::iterator<std::random_access_iterator_tag, _elementType>
73 typedef std::iterator<std::random_access_iterator_tag, _elementType>
BaseType;
113 :
DataPtr(const_cast<value_type *>(dataPtr))
189 return ((*
this) - other) < 0;
192 return (*
this < other) || (*
this == other);
204 return other < (*this);
207 return (*
this > other) || (*
this == other);
213 return !( (*this) == other );
223 template<
class _elementType, vct::str
ide_type _str
ide>
313 template<
class _elementType, vct::str
ide_type _str
ide>
319 return result += difference;
324 template<
class _elementType, vct::str
ide_type _str
ide>
330 return result += difference;
335 template<
class _elementType, vct::str
ide_type _str
ide>
341 return result -= difference;
349 template<
class _elementType, vct::str
ide_type _str
ide>
355 return result += difference;
360 template<
class _elementType, vct::str
ide_type _str
ide>
366 return result += difference;
371 template<
class _elementType, vct::str
ide_type _str
ide>
377 return result -= difference;
381 #endif // _vctFixedStrideVectorIterator_h
ThisType & operator++()
Definition: vctFixedStrideVectorIterator.h:118
Definition: vctFixedStrideVectorIterator.h:224
value_type * DataPtr
Definition: vctFixedStrideVectorIterator.h:89
Definition: vctFixedStrideVectorIterator.h:80
value_type & operator*()
Definition: vctFixedStrideVectorIterator.h:305
vctFixedStrideVectorConstIterator(value_type *dataPtr)
Definition: vctFixedStrideVectorIterator.h:99
VCT_CONTAINER_TRAITS_TYPEDEFS(_elementType)
Portability across compilers and operating systems tools.
bool operator>=(const ThisType &other) const
Definition: vctFixedStrideVectorIterator.h:206
VCT_CONTAINER_TRAITS_TYPEDEFS(_elementType)
ThisType & operator-=(difference_type difference)
Definition: vctFixedStrideVectorIterator.h:292
ThisType & operator+=(difference_type difference)
Definition: vctFixedStrideVectorIterator.h:148
const value_type & operator*() const
Definition: vctFixedStrideVectorIterator.h:178
vctFixedStrideVectorIterator< _elementType, _stride > ThisType
Definition: vctFixedStrideVectorIterator.h:229
vctFixedStrideVectorConstIterator()
Definition: vctFixedStrideVectorIterator.h:93
ThisType & operator-=(difference_type difference)
Definition: vctFixedStrideVectorIterator.h:155
vctFixedStrideVectorConstIterator< _elementType, _stride > ThisType
Definition: vctFixedStrideVectorIterator.h:70
vctFixedStrideVectorConstIterator< _elementType, _stride > operator+(const vctFixedStrideVectorConstIterator< _elementType, _stride > &iterator, typename vctFixedStrideVectorConstIterator< _elementType, _stride >::difference_type difference)
Definition: vctFixedStrideVectorIterator.h:315
Definition: vctFixedStrideVectorIterator.h:62
bool operator<=(const ThisType &other) const
Definition: vctFixedStrideVectorIterator.h:191
ptrdiff_t difference_type
Definition: vctContainerTraits.h:38
bool operator<(const ThisType &other) const
Definition: vctFixedStrideVectorIterator.h:188
ThisType & operator--()
Definition: vctFixedStrideVectorIterator.h:267
ThisType & operator--()
Definition: vctFixedStrideVectorIterator.h:133
ThisType operator--(int)
Definition: vctFixedStrideVectorIterator.h:275
Basic traits for the cisstVector containers.
vctFixedStrideVectorIterator(value_type *dataPtr)
Definition: vctFixedStrideVectorIterator.h:243
vctFixedStrideVectorConstIterator< _elementType, _stride > operator-(const vctFixedStrideVectorConstIterator< _elementType, _stride > &iterator, typename vctFixedStrideVectorConstIterator< _elementType, _stride >::difference_type difference)
Definition: vctFixedStrideVectorIterator.h:337
ThisType & operator++()
Definition: vctFixedStrideVectorIterator.h:250
bool operator>(const ThisType &other) const
Definition: vctFixedStrideVectorIterator.h:203
vctFixedStrideVectorConstIterator< _elementType, _stride > BaseType
Definition: vctFixedStrideVectorIterator.h:230
vctFixedStrideVectorIterator()
Definition: vctFixedStrideVectorIterator.h:234
bool operator!=(const ThisType &other) const
Definition: vctFixedStrideVectorIterator.h:212
const value_type & operator[](difference_type index) const
Definition: vctFixedStrideVectorIterator.h:172
ThisType operator++(int)
Definition: vctFixedStrideVectorIterator.h:125
bool operator==(const ThisType &other) const
Definition: vctFixedStrideVectorIterator.h:197
BaseType::iterator_category iterator_category
Definition: vctFixedStrideVectorIterator.h:77
ThisType operator--(int)
Definition: vctFixedStrideVectorIterator.h:140
std::iterator< std::random_access_iterator_tag, _elementType > BaseType
Definition: vctFixedStrideVectorIterator.h:73
ThisType operator++(int)
Definition: vctFixedStrideVectorIterator.h:258
ThisType & operator+=(difference_type difference)
Definition: vctFixedStrideVectorIterator.h:284
BaseType::iterator_category iterator_category
Definition: vctFixedStrideVectorIterator.h:231
vctFixedStrideVectorConstIterator(const value_type *dataPtr)
Definition: vctFixedStrideVectorIterator.h:112
value_type & operator[](difference_type index) const
Definition: vctFixedStrideVectorIterator.h:299
difference_type operator-(const ThisType &other) const
Definition: vctFixedStrideVectorIterator.h:166