18 #ifndef itkMapContainer_h
19 #define itkMapContainer_h
44 template<
typename TElementIdentifier,
typename TElement >
47 private std::map< TElementIdentifier, TElement >
67 typedef std::map< ElementIdentifier, Element >
MapType;
79 template<
typename TInputIterator >
81 template<
typename TInputIterator >
102 using STLContainerType::begin;
103 using STLContainerType::end;
104 using STLContainerType::rbegin;
105 using STLContainerType::rend;
107 using STLContainerType::empty;
108 using STLContainerType::size;
109 using STLContainerType::max_size;
111 using STLContainerType::operator[];
113 using STLContainerType::insert;
114 using STLContainerType::erase;
116 using STLContainerType::clear;
118 using STLContainerType::key_comp;
119 using STLContainerType::value_comp;
121 using STLContainerType::find;
122 using STLContainerType::count;
123 using STLContainerType::lower_bound;
124 using STLContainerType::upper_bound;
125 using STLContainerType::equal_range;
127 using STLContainerType::get_allocator;
129 using typename STLContainerType::key_type;
130 using typename STLContainerType::mapped_type;
131 using typename STLContainerType::value_type;
132 using typename STLContainerType::key_compare;
133 using typename STLContainerType::value_compare;
134 using typename STLContainerType::allocator_type;
135 using typename STLContainerType::reference;
136 using typename STLContainerType::const_reference;
137 using typename STLContainerType::iterator;
138 using typename STLContainerType::const_iterator;
139 using typename STLContainerType::size_type;
140 using typename STLContainerType::difference_type;
141 using typename STLContainerType::pointer;
142 using typename STLContainerType::const_pointer;
143 using typename STLContainerType::reverse_iterator;
144 using typename STLContainerType::const_reverse_iterator;
162 typedef typename MapIterator::pointer
pointer;
203 typedef typename MapConstIterator::pointer
pointer;
352 #ifndef ITK_MANUAL_INSTANTIATION
353 #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
Represent the size (bounds) of a n-dimensional image.
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)
bool operator!=(const ConstIterator &r) 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
ConstIterator & operator++()
SmartPointer< Self > Pointer
Iterator(const Iterator &i)
MapType::iterator MapIterator
void swap(Array< T > &a, Array< T > &b)
The non-const iterator type for the map.
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
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
ConstIterator operator--(int)
ConstIterator & operator--()
MapIterator::pointer pointer
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.
MapConstIterator::reference reference
ConstIterator & operator*()