#include <itkConstSliceIterator.h>
Public Member Functions | |
ConstSliceIterator | Begin () |
ConstSliceIterator (const TContainer *n, std::slice s) | |
bool | operator!= (const ConstSliceIterator &orig) |
const TPixel & | operator* () |
ConstSliceIterator | operator++ (int) |
ConstSliceIterator | operator++ () |
bool | operator< (const ConstSliceIterator &orig) |
bool | operator== (const ConstSliceIterator &orig) |
const TPixel & | operator[] (unsigned long n) |
ConstSliceIterator | End () |
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.
itk::ConstSliceIterator< TPixel, TContainer >::ConstSliceIterator | ( | const TContainer * | n, | |
std::slice | s | |||
) | [inline] |
Constructor.
Definition at line 53 of file itkConstSliceIterator.h.
ConstSliceIterator itk::ConstSliceIterator< TPixel, TContainer >::Begin | ( | ) | [inline] |
Returns a ConstSliceIterator that points to the beginning of the slice.
Definition at line 57 of file itkConstSliceIterator.h.
References itk::ConstSliceIterator< TPixel, TContainer >::m_Pos.
ConstSliceIterator itk::ConstSliceIterator< TPixel, TContainer >::End | ( | ) | [inline] |
Returns a ConstSliceIterator that points to one past the end of the slice.
Definition at line 66 of file itkConstSliceIterator.h.
References itk::ConstSliceIterator< TPixel, TContainer >::m_Pos.
bool itk::ConstSliceIterator< TPixel, TContainer >::operator!= | ( | const ConstSliceIterator< TPixel, TContainer > & | orig | ) | [inline] |
Returns the logical inverse of the boolean == of two slice iterators.
Definition at line 113 of file itkConstSliceIterator.h.
References itk::operator==().
const TPixel& itk::ConstSliceIterator< TPixel, TContainer >::operator* | ( | ) | [inline] |
Dereferences the iterator, returning the value that it points to.
Definition at line 98 of file itkConstSliceIterator.h.
ConstSliceIterator itk::ConstSliceIterator< TPixel, TContainer >::operator++ | ( | int | ) | [inline] |
Increments the iterator.
Definition at line 82 of file itkConstSliceIterator.h.
ConstSliceIterator itk::ConstSliceIterator< TPixel, TContainer >::operator++ | ( | ) | [inline] |
Increments the iterator.
Definition at line 75 of file itkConstSliceIterator.h.
bool itk::ConstSliceIterator< TPixel, TContainer >::operator< | ( | const ConstSliceIterator< TPixel, TContainer > & | orig | ) | [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 121 of file itkConstSliceIterator.h.
References itk::ConstSliceIterator< TPixel, TContainer >::m_Pos, and itk::ConstSliceIterator< TPixel, TContainer >::m_Slice.
bool itk::ConstSliceIterator< TPixel, TContainer >::operator== | ( | const ConstSliceIterator< TPixel, TContainer > & | orig | ) | [inline] |
Returns the logical && of the boolean == of two slice iterator positions, stride, and start locations.
Definition at line 105 of file itkConstSliceIterator.h.
References itk::ConstSliceIterator< TPixel, TContainer >::m_Pos, and itk::ConstSliceIterator< TPixel, TContainer >::m_Slice.
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 91 of file itkConstSliceIterator.h.