sparse_iterator<Iterator, T> [MTL Home] Programmers Guide
  Contents | Index |  Search 


Category:iterators,adaptors Component type:type
Description
This iterators is used to implement the sparse1D adaptor. The base iterator returns a entry1 (an index-value pair) and this iterator makes it look like we are just dealing with the value for dereference, while the index() method return the index.
Example
Definition
sparse_iterator.h
Template Parameters

ParameterDescriptionDefault
Iteratorthe underlying iterator type 
Tthe value type 
Model of
Members
Member Where defined Description
iterator_category    
value_type    
difference_type    
reference    
pointer    
sparse_iterator ()    
sparse_iterator (const sparse_iterator& x)    
sparse_iterator (const Iterator& iter_, int p = 0)    
sparse_iterator (const Iterator& start, const Iterator& finish)    
operator Iterator () const    
int index () const    
bool operator!= (const self& x) const    
bool operator< (const self& x) const    
reference operator* () const    
self operator (int)    
self& operator-- ()    
self& operator-= (int n)    
self operator- (int n) const    
Iterator iter    
int pos    
New members
Notes
See also

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