#include <itkSmartPointerVectorContainer.h>
Public Member Functions | |
Iterator () | |
Iterator (size_type d, const VectorType *vec, const VectorIterator &i) | |
ElementPointer & | operator* () |
Element * | operator-> () |
ElementPointer & | operator++ () |
ElementPointer | operator++ (int) |
ElementPointer & | operator-- () |
ElementPointer | operator-- (int) |
bool | operator== (const Iterator &r) const |
bool | operator!= (const Iterator &r) const |
bool | operator== (const ConstIterator &r) const |
bool | operator!= (const ConstIterator &r) const |
ElementIdentifier | Index (void) const |
Element * | Value (void) const |
Friends | |
class | ConstIterator |
Definition at line 128 of file itkSmartPointerVectorContainer.h.
itk::SmartPointerVectorContainer< TElementIdentifier, TElement >::Iterator::Iterator | ( | ) | [inline] |
Definition at line 131 of file itkSmartPointerVectorContainer.h.
{}
itk::SmartPointerVectorContainer< TElementIdentifier, TElement >::Iterator::Iterator | ( | size_type | d, |
const VectorType * | vec, | ||
const VectorIterator & | i | ||
) | [inline] |
Definition at line 132 of file itkSmartPointerVectorContainer.h.
: m_Pos(d), m_Vector(vec), m_Iter(i) {}
ElementIdentifier itk::SmartPointerVectorContainer< TElementIdentifier, TElement >::Iterator::Index | ( | void | ) | const [inline] |
Get the index into the SmartPointerVectorContainer associated with this iterator.
Definition at line 147 of file itkSmartPointerVectorContainer.h.
{ return static_cast<ElementIdentifier>( m_Pos ); }
bool itk::SmartPointerVectorContainer< TElementIdentifier, TElement >::Iterator::operator!= | ( | const Iterator & | r ) | const [inline] |
Definition at line 142 of file itkSmartPointerVectorContainer.h.
{ return m_Iter != r.m_Iter; }
bool itk::SmartPointerVectorContainer< TElementIdentifier, TElement >::Iterator::operator!= | ( | const ConstIterator & | r ) | const [inline] |
Definition at line 144 of file itkSmartPointerVectorContainer.h.
{ return m_Iter != r.m_Iter; }
ElementPointer& itk::SmartPointerVectorContainer< TElementIdentifier, TElement >::Iterator::operator* | ( | ) | [inline] |
Definition at line 134 of file itkSmartPointerVectorContainer.h.
{ return *m_Iter; }
ElementPointer itk::SmartPointerVectorContainer< TElementIdentifier, TElement >::Iterator::operator++ | ( | int | ) | [inline] |
Definition at line 137 of file itkSmartPointerVectorContainer.h.
{ Iterator temp(*this); ++m_Pos; ++m_Iter; return *temp; }
ElementPointer& itk::SmartPointerVectorContainer< TElementIdentifier, TElement >::Iterator::operator++ | ( | ) | [inline] |
Definition at line 136 of file itkSmartPointerVectorContainer.h.
{ ++m_Pos; ++m_Iter; return *m_Iter; }
ElementPointer& itk::SmartPointerVectorContainer< TElementIdentifier, TElement >::Iterator::operator-- | ( | ) | [inline] |
Definition at line 138 of file itkSmartPointerVectorContainer.h.
{ --m_Pos; --m_Iter; return *this; }
ElementPointer itk::SmartPointerVectorContainer< TElementIdentifier, TElement >::Iterator::operator-- | ( | int | ) | [inline] |
Definition at line 139 of file itkSmartPointerVectorContainer.h.
{ Iterator temp(*this); --m_Pos; --m_Iter; return *temp; }
Element* itk::SmartPointerVectorContainer< TElementIdentifier, TElement >::Iterator::operator-> | ( | ) | [inline] |
Definition at line 135 of file itkSmartPointerVectorContainer.h.
{ return m_Iter == m_Vector->end() ? NULL : m_Iter->GetPointer(); }
bool itk::SmartPointerVectorContainer< TElementIdentifier, TElement >::Iterator::operator== | ( | const Iterator & | r ) | const [inline] |
Definition at line 141 of file itkSmartPointerVectorContainer.h.
{ return m_Iter == r.m_Iter; }
bool itk::SmartPointerVectorContainer< TElementIdentifier, TElement >::Iterator::operator== | ( | const ConstIterator & | r ) | const [inline] |
Definition at line 143 of file itkSmartPointerVectorContainer.h.
{ return m_Iter == r.m_Iter; }
Element* itk::SmartPointerVectorContainer< TElementIdentifier, TElement >::Iterator::Value | ( | void | ) | const [inline] |
Get the value at this iterator's location in the SmartPointerVectorContainer.
Definition at line 150 of file itkSmartPointerVectorContainer.h.
{ return m_Iter->GetPointer(); }
friend class ConstIterator [friend] |
Definition at line 156 of file itkSmartPointerVectorContainer.h.