18 #ifndef __itkMapContainer_h
19 #define __itkMapContainer_h
44 template<
typename TElementIdentifier,
typename TElement >
47 private std::map< TElementIdentifier, TElement >
68 typedef std::map< ElementIdentifier, Element >
MapType;
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;
338 #ifndef ITK_MANUAL_INSTANTIATION
339 #include "itkMapContainer.hxx"
bool operator==(const ConstIterator &r) const
bool operator==(const Iterator &r) const
Light weight base class for most itk classes.
ConstIterator Begin(void) const
bool operator==(const ConstIterator &r) const
MapContainer(const MapKeyCompareType &comp)
A wrapper of the STL "map" container.
const Element & Value(void) const
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
ConstIterator End(void) const
bool operator!=(const ConstIterator &r) const
Element & CreateElementAt(ElementIdentifier)
ConstIterator & operator++()
SmartPointer< Self > Pointer
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.
void CreateIndex(ElementIdentifier)
bool GetElementIfIndexExists(ElementIdentifier, Element *) 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
ElementIdentifier Size(void) const
ConstIterator operator++(int)
Iterator(const MapIterator &i)
ConstIterator(const Iterator &r)
Element GetElement(ElementIdentifier) const
ConstIterator operator--(int)
ConstIterator & operator--()
void SetElement(ElementIdentifier, Element)
void operator=(const Self &)
std::map< ElementIdentifier, Element > MapType
STLContainerType & CastToSTLContainer()
TElementIdentifier ElementIdentifier
Base class for most ITK classes.
void Reserve(ElementIdentifier)
ConstIterator & operator*()