18 #ifndef itkVectorContainer_h
19 #define itkVectorContainer_h
48 typename TElementIdentifier,
53 private std::vector< TElement >
85 template<
typename TInputIterator >
117 using STLContainerType::begin;
118 using STLContainerType::end;
119 using STLContainerType::rbegin;
120 using STLContainerType::rend;
122 using STLContainerType::size;
123 using STLContainerType::max_size;
124 using STLContainerType::resize;
125 using STLContainerType::capacity;
126 using STLContainerType::empty;
127 using STLContainerType::reserve;
129 using STLContainerType::operator[];
130 using STLContainerType::at;
131 using STLContainerType::front;
132 using STLContainerType::back;
134 using STLContainerType::assign;
135 using STLContainerType::push_back;
136 using STLContainerType::pop_back;
137 using STLContainerType::insert;
138 using STLContainerType::erase;
140 using STLContainerType::clear;
142 using STLContainerType::get_allocator;
144 using typename STLContainerType::reference;
145 using typename STLContainerType::const_reference;
146 using typename STLContainerType::iterator;
147 using typename STLContainerType::const_iterator;
150 using typename STLContainerType::difference_type;
151 using typename STLContainerType::value_type;
152 using typename STLContainerType::allocator_type;
153 using typename STLContainerType::pointer;
154 using typename STLContainerType::const_pointer;
155 using typename STLContainerType::reverse_iterator;
156 using typename STLContainerType::const_reverse_iterator;
159 friend class Iterator;
160 friend class ConstIterator;
173 typedef typename VectorIterator::pointer
pointer;
223 typedef typename VectorConstIterator::pointer
pointer;
224 typedef typename VectorConstIterator::reference
reference;
390 #ifndef ITK_MANUAL_INSTANTIATION
391 #include "itkVectorContainer.hxx"
bool operator!=(const Iterator &r) const
ConstIterator operator++(int)
VectorConstIterator::value_type value_type
Light weight base class for most itk classes.
ConstIterator & operator=(const Iterator &r)
Iterator(const Iterator &r)
ElementIdentifier Index(void) const
TElementIdentifier ElementIdentifier
Represent the size (bounds) of a n-dimensional image.
bool operator>(const Iterator &r) const
bool operator!=(const Iterator &r) const
ConstIterator(size_type d, const VectorConstIterator &i)
VectorType::const_iterator VectorConstIterator
Iterator(size_type d, const VectorIterator &i)
VectorType STLContainerType
VectorIterator::pointer pointer
bool operator==(const ConstIterator &r) const
difference_type operator-(const ConstIterator &r) const
ConstIterator operator--(int)
VectorIterator::iterator_category iterator_category
bool operator==(const Iterator &r) const
VectorConstIterator::iterator_category iterator_category
Iterator & operator+=(difference_type n)
const Element & Value(void) const
ConstIterator * operator->()
SmartPointer< const Self > ConstPointer
STLContainerType & CastToSTLContainer()
ConstIterator & operator+=(difference_type n)
bool operator>=(const Iterator &r) const
Element & Value(void) const
const STLContainerType & CastToSTLConstContainer() const
bool operator<(const ConstIterator &r) const
void swap(Array< T > &a, Array< T > &b)
bool operator<(const Iterator &r) const
bool operator!=(const ConstIterator &r) const
VectorIterator::value_type value_type
difference_type operator-(const Iterator &r) const
bool operator>=(const ConstIterator &r) const
bool operator==(const ConstIterator &r) const
ConstIterator(const Iterator &r)
VectorConstIterator::pointer pointer
bool operator!=(const ConstIterator &r) const
VectorContainer(size_type n)
VectorType::iterator VectorIterator
SmartPointer< Self > Pointer
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
VectorIterator::reference reference
VectorIterator::difference_type difference_type
bool operator<=(const ConstIterator &r) const
VectorContainer(const Self &r)
ConstIterator & operator--()
ConstIterator & operator++()
bool operator>(const ConstIterator &r) const
ConstIterator & operator*()
Base class for most ITK classes.
std::vector< Element > VectorType
VectorConstIterator m_Iter
VectorContainer(TInputIterator first, TInputIterator last)
bool operator==(const Iterator &r) const
VectorType::size_type size_type
bool operator<=(const Iterator &r) const
ElementIdentifier Index(void) const
VectorConstIterator::difference_type difference_type
VectorConstIterator::reference reference
VectorContainer(size_type n, const Element &x)