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;
359 #ifndef ITK_MANUAL_INSTANTIATION
360 #include "itkVectorContainer.hxx"
bool operator!=(const Iterator &r) const
ConstIterator operator++(int)
ElementIdentifier Size(void) const
bool GetElementIfIndexExists(ElementIdentifier, Element *) const
Light weight base class for most itk classes.
Element & CreateElementAt(ElementIdentifier)
ConstIterator & operator=(const Iterator &r)
ElementIdentifier Index(void) const
TElementIdentifier ElementIdentifier
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
bool operator==(const ConstIterator &r) const
ConstIterator Begin(void) const
ConstIterator operator--(int)
bool operator==(const Iterator &r) const
const Element & Value(void) const
ConstIterator * operator->()
SmartPointer< const Self > ConstPointer
ConstIterator End(void) const
void DeleteIndex(ElementIdentifier)
STLContainerType & CastToSTLContainer()
Element & Value(void) const
const STLContainerType & CastToSTLConstContainer() const
void swap(Array< T > &a, Array< T > &b)
bool IndexExists(ElementIdentifier) const
bool operator!=(const ConstIterator &r) const
void InsertElement(ElementIdentifier, Element)
void Reserve(ElementIdentifier)
bool operator==(const ConstIterator &r) const
ConstIterator(const Iterator &r)
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.
VectorContainer(const Self &r)
ConstIterator & operator--()
friend class ConstIterator
ConstIterator & operator++()
void CreateIndex(ElementIdentifier)
Element & ElementAt(ElementIdentifier)
void SetElement(ElementIdentifier, Element)
ConstIterator & operator*()
Base class for most ITK classes.
std::vector< Element > VectorType
VectorConstIterator m_Iter
Element GetElement(ElementIdentifier) const
VectorContainer(TInputIterator first, TInputIterator last)
bool operator==(const Iterator &r) const
VectorType::size_type size_type
ElementIdentifier Index(void) const
VectorContainer(size_type n, const Element &x)