Cuda::Iterator< Dim > Class Template Reference

Generic iterator over n-dimensional data. More...

#include <iterator.hpp>

Inheritance diagram for Cuda::Iterator< Dim >:

Inheritance graph
[legend]
Collaboration diagram for Cuda::Iterator< Dim >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Iterator (const SizeBase< Dim > &_imax)
 Constructor iterator for given size.
 Iterator (const SizeBase< Dim > &_imin, const SizeBase< Dim > &_imax)
 Constructor iterator for given range.
const IteratorsetBegin ()
 Set iterator to begin of data.
const IteratorsetEnd ()
 Set iterator to end of data.

Protected Attributes

SizeBase< Dim > imin
 The iterator range.


Detailed Description

template<unsigned Dim>
class Cuda::Iterator< Dim >

Generic iterator over n-dimensional data.

Constructor & Destructor Documentation

template<unsigned Dim>
Cuda::Iterator< Dim >::Iterator ( const SizeBase< Dim > &  _imax  )  [inline]

Constructor iterator for given size.

Parameters:
_imax maximum

template<unsigned Dim>
Cuda::Iterator< Dim >::Iterator ( const SizeBase< Dim > &  _imin,
const SizeBase< Dim > &  _imax 
) [inline]

Constructor iterator for given range.

Parameters:
_imin minimum
_imax maximum


Member Function Documentation

template<unsigned Dim>
const Iterator& Cuda::Iterator< Dim >::setBegin (  )  [inline]

Set iterator to begin of data.

Returns:
updated iterator

template<unsigned Dim>
const Iterator& Cuda::Iterator< Dim >::setEnd (  )  [inline]

Set iterator to end of data.

Returns:
updated iterator


Member Data Documentation

template<unsigned Dim>
SizeBase<Dim> Cuda::Iterator< Dim >::imin [protected]

The iterator range.

imin is inclusive, imax is exclusive. Setting the index to imax indicates the "end" condition.


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

Generated on Sun Sep 13 00:55:19 2009 for cudatemplates by  doxygen 1.5.6