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;
121 using STLContainerType::cbegin;
122 using STLContainerType::cend;
123 using STLContainerType::crbegin;
124 using STLContainerType::crend;
126 using STLContainerType::size;
127 using STLContainerType::max_size;
128 using STLContainerType::resize;
129 using STLContainerType::capacity;
130 using STLContainerType::empty;
131 using STLContainerType::reserve;
132 using STLContainerType::shrink_to_fit;
134 using STLContainerType::operator[];
135 using STLContainerType::at;
136 using STLContainerType::front;
137 using STLContainerType::back;
139 using STLContainerType::assign;
140 using STLContainerType::push_back;
141 using STLContainerType::pop_back;
142 using STLContainerType::insert;
143 using STLContainerType::erase;
145 using STLContainerType::clear;
147 using STLContainerType::get_allocator;
149 using typename STLContainerType::reference;
150 using typename STLContainerType::const_reference;
151 using typename STLContainerType::iterator;
152 using typename STLContainerType::const_iterator;
155 using typename STLContainerType::difference_type;
156 using typename STLContainerType::value_type;
157 using typename STLContainerType::allocator_type;
158 using typename STLContainerType::pointer;
159 using typename STLContainerType::const_pointer;
160 using typename STLContainerType::reverse_iterator;
161 using typename STLContainerType::const_reverse_iterator;
164 friend class Iterator;
165 friend class ConstIterator;
178 using pointer =
typename VectorIterator::pointer;
228 using pointer =
typename VectorConstIterator::pointer;
229 using reference =
typename VectorConstIterator::reference;
260 const_reference
Value()
const {
return *m_Iter; }
395 #ifndef ITK_MANUAL_INSTANTIATION
396 #include "itkVectorContainer.hxx"
bool operator!=(const Iterator &r) const
VectorType STLContainerType
ConstIterator operator++(int)
typename VectorIterator::difference_type difference_type
Light weight base class for most itk classes.
ConstIterator & operator=(const Iterator &r)
Iterator(const Iterator &r)
typename VectorConstIterator::pointer pointer
bool operator>(const Iterator &r) const
bool operator!=(const Iterator &r) const
ConstIterator(size_type d, const VectorConstIterator &i)
Iterator(size_type d, const VectorIterator &i)
typename VectorConstIterator::iterator_category iterator_category
bool operator==(const ConstIterator &r) const
difference_type operator-(const ConstIterator &r) const
TElementIdentifier ElementIdentifier
ConstIterator operator--(int)
typename VectorConstIterator::value_type value_type
bool operator==(const Iterator &r) const
std::vector< Element > VectorType
Iterator & operator+=(difference_type n)
ConstIterator * operator->()
ConstIterator & operator+=(difference_type n)
ElementIdentifier Index() const
bool operator>=(const Iterator &r) const
bool operator<(const ConstIterator &r) const
void swap(Array< T > &a, Array< T > &b)
typename VectorConstIterator::difference_type difference_type
bool operator<(const Iterator &r) const
typename VectorIterator::reference reference
bool operator!=(const ConstIterator &r) const
difference_type operator-(const Iterator &r) const
bool operator>=(const ConstIterator &r) const
Represent a n-dimensional size (bounds) of a n-dimensional image.
bool operator==(const ConstIterator &r) const
typename VectorConstIterator::reference reference
ConstIterator(const Iterator &r)
bool operator!=(const ConstIterator &r) const
VectorContainer(size_type n)
typename VectorType::const_iterator VectorConstIterator
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
typename VectorIterator::pointer pointer
bool operator<=(const ConstIterator &r) const
VectorContainer(const Self &r)
ConstIterator & operator--()
ConstIterator & operator++()
const_reference Value() const
bool operator>(const ConstIterator &r) const
typename VectorIterator::iterator_category iterator_category
ElementIdentifier Index() const
ConstIterator & operator*()
Base class for most ITK classes.
const STLContainerType & CastToSTLConstContainer() const noexcept
ImageBaseType::SpacingType VectorType
VectorConstIterator m_Iter
VectorContainer(TInputIterator first, TInputIterator last)
bool operator==(const Iterator &r) const
typename VectorIterator::value_type value_type
bool operator<=(const Iterator &r) const
typename VectorType::iterator VectorIterator
VectorContainer(size_type n, const Element &x)
typename VectorType::size_type size_type
STLContainerType & CastToSTLContainer() noexcept