strided_iterator<RandomAccessIterator, int isConst> [MTL Home] Programmers Guide
  Contents | Index |  Search 


Category:iterators,adaptors Component type:type
Description
This iterator moves a constant stride for each increment or decrement operator invoked. The strided iterator is used to implement a row-view to column oriented matrices, or column-views to row oriented matrices.
Example
Definition
Template Parameters
Model of
RandomAccessIterator
Members
Member Where defined Description
difference_type   The type for the difference between two iterators
distance_type    
value_type   The value type pointed to by this iterator type
iterator_category   The iterator category for this iterator
reference   The type for references to the value type
pointer   The type for pointers to the value type
pointer   The type for pointers to the value type
iterator_type   The underlying iterator type
strided_iterator ()   Default Constructor
strided_iterator (const RandomAccessIterator& x, int s, int p)   Construct from the underlying iterator
strided_iterator (const self& x)   Copy Constructor
self& operator= (const self& x)   Assignment Operator
int index () const IndexedIterator Return the index of the element this iterator points to
operator RandomAccessIterator () const   Convert to the underlying iterator
RandomAccessIterator base () const    
reference operator* () const   Dereference, return the element currently pointed to
self& operator ()   Pre-increment operator
self operator (int)   Post-increment operator
self& operator-- ()   Pre-decrement operator
self operator-- (int)   Post-decrement operator
self operator+ (Distance n) const   Add this iterator and n
self& operator+= (Distance n)   Add distance n to this iterator
self operator- (Distance n) const   Subtract this iterator and distance n
self& operator-= (Distance n)   Subtract distance n from this iterator
self operator+ (const self& x) const   Add this iterator and iterator x
Distance operator- (const self& x) const   Return this distance between this iterator and iterator x
reference operator[] (Distance n) const   Return *(i + n)
bool operator== (const self& x) const   Return whether this iterator is equal to iterator x
bool operator!= (const self& x) const   Return whether this iterator is not equal to iterator x
bool operator< (const self& x) const   Return whether this iterator is less than iterator x
New members
Notes
See also

[MTL Home] Copyright © 1998,1999 University of Notre Dame. All Rights Reserved.