Main Page
Groups
Namespace List
Class Hierarchy
Alphabetical List
Compound List
File
List
Namespace Members
Compound Members
File Members
Concepts
itk::ConstSliceIterator< TPixel, TContainer > Class Template Reference
[Iterators]
A flexible iterator for itk containers(i.e. itk::Neighborhood) that support pixel access through operator[].
More...
#include <itkConstSliceIterator.h>
Collaboration diagram for itk::ConstSliceIterator< TPixel, TContainer >:
[legend]List of all members.
Detailed Description
template<class TPixel, class TContainer>
class itk::ConstSliceIterator< TPixel, TContainer >
A flexible iterator for itk containers(i.e. itk::Neighborhood) that support pixel access through operator[].
ConstSliceIterator allows const iteration along a std::slice through the container. A slice is a construct that defines a starting position, stride length (distance between adjacent elements), and a length.
Any container with operator[] const is supported. Because it uses this interface the iterator is only as efficient as the implementation of a container's operator[] method.
References: Modeled after a slice iterator proposed by Bjarne Stroustrup in C++ Programming Language, Third Edition. Bjarne Stroustrup. Addison Wesley, Reading, MA. 1997.
Definition at line 48 of file itkConstSliceIterator.h.
Constructor & Destructor Documentation
Member Function Documentation
template<class TPixel, class TContainer> |
const TPixel& itk::ConstSliceIterator< TPixel, TContainer >::operator * |
( |
|
) |
[inline] |
|
|
Returns the boolean < of two slice iterator positions. Result is only true if the slice iterators have the same stride and start location. Definition at line 120 of file itkConstSliceIterator.h. |
|
Returns the logical && of the boolean == of two slice iterator positions, stride, and start locations. Definition at line 104 of file itkConstSliceIterator.h. |
template<class TPixel, class TContainer> |
const TPixel& itk::ConstSliceIterator< TPixel, TContainer >::operator[] |
( |
unsigned long |
n |
) |
[inline] |
|
|
Returns the element at position n of the slice. Sets the iterator to point to position n. Definition at line 90 of file itkConstSliceIterator.h. |
The documentation for this class was generated from the following file:
Generated at Sat Mar 31 02:52:09 2007 for ITK by
1.3.8 written by Dimitri van Heesch,
© 1997-2000