#include <itkSliceIterator.h>
Collaboration diagram for itk::SliceIterator< TPixel, TContainer >:
Public Methods | |
SliceIterator (TContainer *n, std::slice s) | |
SliceIterator | Begin () |
SliceIterator | operator++ () |
SliceIterator | operator++ (int) |
TPixel & | operator[] (unsigned long n) |
TPixel & | operator * () |
bool | operator== (const SliceIterator &orig) |
bool | operator!= (const SliceIterator &orig) |
bool | operator< (const SliceIterator &orig) |
SliceIterator | End () |
SliceIterator allows 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[] 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 45 of file itkSliceIterator.h.
|
Constructor. Definition at line 49 of file itkSliceIterator.h. |
|
Returns a SliceIterator that points to the beginning of the slice. Definition at line 53 of file itkSliceIterator.h. References itk::SliceIterator< TPixel, TContainer >::m_Pos. |
|
Returns a SliceIterator that points to one past the end of the slice. Definition at line 61 of file itkSliceIterator.h. References itk::SliceIterator< TPixel, TContainer >::m_Pos. |
|
Dereferences the iterator, returning the value that it points to. Definition at line 91 of file itkSliceIterator.h. |
|
Returns the logical inverse of the boolean == of two slice iterators. Definition at line 104 of file itkSliceIterator.h. References itk::operator==(). |
|
Increments the iterator. Definition at line 77 of file itkSliceIterator.h. |
|
Increments the iterator. Definition at line 70 of file itkSliceIterator.h. |
|
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 112 of file itkSliceIterator.h. |
|
Returns the logical && of the boolean == of two slice iterator positions, stride, and start locations. Definition at line 96 of file itkSliceIterator.h. |
|
Returns the element at position n of the slice. Sets the iterator to point to position n. Definition at line 86 of file itkSliceIterator.h. |