Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
22 #ifndef USSHRINKABLEVECTOR_H
23 #define USSHRINKABLEVECTOR_H
41 static std::vector<E> emptyVector;
46 typedef typename container_type::iterator
iterator;
48 typedef typename container_type::size_type
size_type;
49 typedef typename container_type::reference
reference;
53 : container(emptyVector)
59 return container.begin();
64 return container.begin();
69 return container.end();
74 return container.end();
79 return container.front();
84 return container.front();
89 return container.back();
94 return container.back();
99 return container.erase(pos);
104 return container.erase(first, last);
109 container.pop_back();
114 return container.empty();
124 return container.size();
129 return container.at(pos);
134 return container.at(pos);
149 friend class ModuleHooks;
150 friend class ServiceHooks;
153 : container(container)
156 container_type& container;
160 std::vector<E> ShrinkableVector<E>::emptyVector;
164 #endif // USSHRINKABLEVECTOR_H
const_iterator end() const
iterator erase(iterator pos)
const_iterator begin() const
reference at(size_type pos)
container_type::iterator iterator
container_type::reference reference
container_type::const_iterator const_iterator
#define US_BEGIN_NAMESPACE
container_type::const_reference const_reference
const_reference back() const
const_reference front() const
std::vector< E > container_type
reference operator[](size_type i)
const_reference operator[](size_type i) const
container_type::size_type size_type
iterator erase(iterator first, iterator last)
const_reference at(size_type pos) const