Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
us::ShrinkableVector< E > Class Template Reference

A std::vector style container allowing query and removal operations only. More...

#include <usShrinkableVector.h>

Public Types

typedef std::vector< E > container_type
 
typedef container_type::iterator iterator
 
typedef container_type::const_iterator const_iterator
 
typedef container_type::size_type size_type
 
typedef container_type::reference reference
 
typedef container_type::const_reference const_reference
 

Public Member Functions

 ShrinkableVector ()
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
reference front ()
 
const_reference front () const
 
reference back ()
 
const_reference back () const
 
iterator erase (iterator pos)
 
iterator erase (iterator first, iterator last)
 
void pop_back ()
 
bool empty () const
 
void clear ()
 
size_type size () const
 
reference at (size_type pos)
 
const_reference at (size_type pos) const
 
const_reference operator[] (size_type i) const
 
reference operator[] (size_type i)
 

Detailed Description

template<class E>
class us::ShrinkableVector< E >

A std::vector style container allowing query and removal operations only.

Definition at line 29 of file usShrinkableVector.h.

Member Typedef Documentation

◆ const_iterator

template<class E >
typedef container_type::const_iterator us::ShrinkableVector< E >::const_iterator

Definition at line 38 of file usShrinkableVector.h.

◆ const_reference

template<class E >
typedef container_type::const_reference us::ShrinkableVector< E >::const_reference

Definition at line 41 of file usShrinkableVector.h.

◆ container_type

template<class E >
typedef std::vector<E> us::ShrinkableVector< E >::container_type

Definition at line 36 of file usShrinkableVector.h.

◆ iterator

template<class E >
typedef container_type::iterator us::ShrinkableVector< E >::iterator

Definition at line 37 of file usShrinkableVector.h.

◆ reference

template<class E >
typedef container_type::reference us::ShrinkableVector< E >::reference

Definition at line 40 of file usShrinkableVector.h.

◆ size_type

template<class E >
typedef container_type::size_type us::ShrinkableVector< E >::size_type

Definition at line 39 of file usShrinkableVector.h.

Constructor & Destructor Documentation

◆ ShrinkableVector()

template<class E >
us::ShrinkableVector< E >::ShrinkableVector ( )
inline

Definition at line 43 of file usShrinkableVector.h.

Member Function Documentation

◆ at() [1/2]

template<class E >
reference us::ShrinkableVector< E >::at ( size_type  pos)
inline

Definition at line 118 of file usShrinkableVector.h.

◆ at() [2/2]

template<class E >
const_reference us::ShrinkableVector< E >::at ( size_type  pos) const
inline

Definition at line 123 of file usShrinkableVector.h.

◆ back() [1/2]

template<class E >
reference us::ShrinkableVector< E >::back ( )
inline

Definition at line 78 of file usShrinkableVector.h.

◆ back() [2/2]

template<class E >
const_reference us::ShrinkableVector< E >::back ( ) const
inline

Definition at line 83 of file usShrinkableVector.h.

◆ begin() [1/2]

template<class E >
iterator us::ShrinkableVector< E >::begin ( )
inline

Definition at line 48 of file usShrinkableVector.h.

◆ begin() [2/2]

template<class E >
const_iterator us::ShrinkableVector< E >::begin ( ) const
inline

Definition at line 53 of file usShrinkableVector.h.

◆ clear()

template<class E >
void us::ShrinkableVector< E >::clear ( )
inline

Definition at line 108 of file usShrinkableVector.h.

◆ empty()

template<class E >
bool us::ShrinkableVector< E >::empty ( ) const
inline

Definition at line 103 of file usShrinkableVector.h.

◆ end() [1/2]

template<class E >
iterator us::ShrinkableVector< E >::end ( )
inline

Definition at line 58 of file usShrinkableVector.h.

◆ end() [2/2]

template<class E >
const_iterator us::ShrinkableVector< E >::end ( ) const
inline

Definition at line 63 of file usShrinkableVector.h.

◆ erase() [1/2]

template<class E >
iterator us::ShrinkableVector< E >::erase ( iterator  first,
iterator  last 
)
inline

Definition at line 93 of file usShrinkableVector.h.

◆ erase() [2/2]

template<class E >
iterator us::ShrinkableVector< E >::erase ( iterator  pos)
inline

Definition at line 88 of file usShrinkableVector.h.

◆ front() [1/2]

template<class E >
reference us::ShrinkableVector< E >::front ( )
inline

Definition at line 68 of file usShrinkableVector.h.

◆ front() [2/2]

template<class E >
const_reference us::ShrinkableVector< E >::front ( ) const
inline

Definition at line 73 of file usShrinkableVector.h.

◆ operator[]() [1/2]

template<class E >
reference us::ShrinkableVector< E >::operator[] ( size_type  i)
inline

Definition at line 133 of file usShrinkableVector.h.

◆ operator[]() [2/2]

template<class E >
const_reference us::ShrinkableVector< E >::operator[] ( size_type  i) const
inline

Definition at line 128 of file usShrinkableVector.h.

◆ pop_back()

template<class E >
void us::ShrinkableVector< E >::pop_back ( )
inline

Definition at line 98 of file usShrinkableVector.h.

◆ size()

template<class E >
size_type us::ShrinkableVector< E >::size ( ) const
inline

Definition at line 113 of file usShrinkableVector.h.


The documentation for this class was generated from the following file: