18 #ifndef itkMapContainer_h
19 #define itkMapContainer_h
44 template<
typename TElementIdentifier,
typename TElement >
47 private std::map< TElementIdentifier, TElement >
65 void operator=(const
Self &) ITK_DELETE_FUNCTION;
80 template<
typename TInputIterator >
82 template<
typename TInputIterator >
103 using STLContainerType::begin;
104 using STLContainerType::end;
105 using STLContainerType::rbegin;
106 using STLContainerType::rend;
108 using STLContainerType::empty;
109 using STLContainerType::size;
110 using STLContainerType::max_size;
112 using STLContainerType::operator[];
114 using STLContainerType::insert;
115 using STLContainerType::erase;
117 using STLContainerType::clear;
119 using STLContainerType::key_comp;
120 using STLContainerType::value_comp;
122 using STLContainerType::find;
123 using STLContainerType::count;
124 using STLContainerType::lower_bound;
125 using STLContainerType::upper_bound;
126 using STLContainerType::equal_range;
128 using STLContainerType::get_allocator;
130 using typename STLContainerType::key_type;
131 using typename STLContainerType::mapped_type;
132 using typename STLContainerType::value_type;
133 using typename STLContainerType::key_compare;
134 using typename STLContainerType::value_compare;
135 using typename STLContainerType::allocator_type;
136 using typename STLContainerType::reference;
137 using typename STLContainerType::const_reference;
138 using typename STLContainerType::iterator;
139 using typename STLContainerType::const_iterator;
140 using typename STLContainerType::size_type;
141 using typename STLContainerType::difference_type;
142 using typename STLContainerType::pointer;
143 using typename STLContainerType::const_pointer;
144 using typename STLContainerType::reverse_iterator;
145 using typename STLContainerType::const_reverse_iterator;
163 typedef typename MapIterator::pointer
pointer;
204 typedef typename MapConstIterator::pointer
pointer;
353 #ifndef ITK_MANUAL_INSTANTIATION
354 #include "itkMapContainer.hxx"
bool operator==(const ConstIterator &r) const
MapConstIterator::difference_type difference_type
bool operator==(const Iterator &r) const
Light weight base class for most itk classes.
MapConstIterator::pointer pointer
MapIterator::value_type value_type
bool operator==(const ConstIterator &r) const
MapContainer(const MapKeyCompareType &comp)
MapConstIterator::iterator_category iterator_category
A wrapper of the STL "map" container.
const Element & Value(void) const
ConstIterator & operator=(const ConstIterator &r)
void InsertElement(ElementIdentifier, Element)
bool operator!=(const ConstIterator &r) const
bool IndexExists(ElementIdentifier) const
SmartPointer< const Self > ConstPointer
ElementIdentifier Index(void) const
bool operator==(const Iterator &r) const
MapIterator::iterator_category iterator_category
bool operator!=(const ConstIterator &r) const
Element & CreateElementAt(ElementIdentifier)
ConstIterator & operator++()
SmartPointer< Self > Pointer
Iterator(const Iterator &i)
ConstIterator End() const
MapType::iterator MapIterator
void swap(Array< T > &a, Array< T > &b)
void DeleteIndex(ElementIdentifier)
The non-const iterator type for the map.
Element & ElementAt(ElementIdentifier)
const STLContainerType & CastToSTLConstContainer() const
bool operator!=(const Iterator &r) const
ElementIdentifier Index(void) const
The const iterator type for the map.
MapIterator::difference_type difference_type
void CreateIndex(ElementIdentifier)
bool GetElementIfIndexExists(ElementIdentifier, Element *) const
ConstIterator Begin() const
MapContainer(TInputIterator first, TInputIterator last, const MapKeyCompareType &comp)
bool operator!=(const Iterator &r) const
ConstIterator * operator->()
MapType::key_compare MapKeyCompareType
ConstIterator(const MapConstIterator &ci)
MapContainer(TInputIterator first, TInputIterator last)
MapType::const_iterator MapConstIterator
ConstIterator operator++(int)
Iterator(const MapIterator &i)
ConstIterator(const Iterator &r)
MapIterator::reference reference
Element GetElement(ElementIdentifier) const
ElementIdentifier Size() const
ConstIterator operator--(int)
ConstIterator & operator--()
MapIterator::pointer pointer
void SetElement(ElementIdentifier, Element)
std::map< ElementIdentifier, Element > MapType
STLContainerType & CastToSTLContainer()
TElementIdentifier ElementIdentifier
MapConstIterator::value_type value_type
Iterator & operator=(const Iterator &r)
Base class for most ITK classes.
void Reserve(ElementIdentifier)
MapConstIterator::reference reference
ConstIterator & operator*()