strided1D<RandomAccessContainerRef> [MTL Home] Programmers Guide
  Contents | Index |  Search 


Category:containers,adaptors Component type:type
Description
This class in not meant to be used directly. Instead it is created automatically when the stride(x,inc) function is invoked. See the documentation for "Shortcut for Creating A Strided Vector".
Example
Definition
strided1D.h
Template Parameters

ParameterDescriptionDefault
RandomAccessContainerRefbase container type 
Model of
RandomAccessContainerRef
Members
Member Where defined Description
enum { N = RandomAccessContainerRef::N }    
value_type Container The value type
reference Container The type for references to the value type
const_reference Container The type for const references to the value type
iterator Container The iterator type
const_iterator Container The const iterator type
reverse_iterator Reversible Container The reverse iterator type
const_reverse_iterator Reversible Container The const reverse iterator type
scaled_type Scalable The scaled vector type
sparsity   Whether the vector is sparse or dense
IndexArrayRef   The type for references to the index array
IndexArray   The type for the index array
dimension   This is a 1D container
size_type Container The unsigned integral type for dimensions and indices
difference_type Container The integral type for differences between iterators
pointer   The type for pointers to the value type
subrange_type   The subrange vector type
strided1D (const Vector& r, int stride_)   Normal Constructor
strided1D (const self& x)   Copy Constructor
operator Vector& ()    
iterator begin () Container Return an iterator pointing to the beginning of the vector
iterator end () Container Return an iterator pointing past the end of the vector
const_iterator begin () const Container Return a const iterator pointing to the begining of the vector
const_iterator end () const Container Return a const iterator pointing past the end of the vector
reverse_iterator rbegin () Reversible Container Return a reverse iterator pointing to the last element of the vector
reverse_iterator rend () Reversible Container Return a reverse iterator pointing past the end of the vector
const_reverse_iterator rbegin () const Reversible Container Return a const reverse iterator pointing to the last element of the vector
const_reverse_iterator rend () const Reversible Container Return a const reverse iterator pointing past the end of the vector
reference operator[] (size_type i) Random Access Container Return a reference to the element with index i
const_reference operator[] (size_type i) const Random Access Container Return a const reference to the element with index i
size_type size () const Container Return the size of the vector
size_type nnz () const Vector Return the number of non-zeroes
subrange_type operator() (size_type s, size_type f) const   Return a subrange vector containing the elements from index s to f
self& adjust_index (size_type i)    
New members
Notes
See also

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