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

#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 38 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 47 of file usShrinkableVector.h.

◆ const_reference

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

Definition at line 50 of file usShrinkableVector.h.

◆ container_type

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

Definition at line 45 of file usShrinkableVector.h.

◆ iterator

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

Definition at line 46 of file usShrinkableVector.h.

◆ reference

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

Definition at line 49 of file usShrinkableVector.h.

◆ size_type

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

Definition at line 48 of file usShrinkableVector.h.

Constructor & Destructor Documentation

◆ ShrinkableVector()

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

Definition at line 52 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 127 of file usShrinkableVector.h.

◆ at() [2/2]

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

Definition at line 132 of file usShrinkableVector.h.

◆ back() [1/2]

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

Definition at line 87 of file usShrinkableVector.h.

◆ back() [2/2]

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

Definition at line 92 of file usShrinkableVector.h.

◆ begin() [1/2]

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

Definition at line 57 of file usShrinkableVector.h.

◆ begin() [2/2]

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

Definition at line 62 of file usShrinkableVector.h.

◆ clear()

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

Definition at line 117 of file usShrinkableVector.h.

◆ empty()

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

Definition at line 112 of file usShrinkableVector.h.

◆ end() [1/2]

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

Definition at line 67 of file usShrinkableVector.h.

◆ end() [2/2]

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

Definition at line 72 of file usShrinkableVector.h.

◆ erase() [1/2]

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

Definition at line 102 of file usShrinkableVector.h.

◆ erase() [2/2]

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

Definition at line 97 of file usShrinkableVector.h.

◆ front() [1/2]

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

Definition at line 77 of file usShrinkableVector.h.

◆ front() [2/2]

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

Definition at line 82 of file usShrinkableVector.h.

◆ operator[]() [1/2]

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

Definition at line 142 of file usShrinkableVector.h.

◆ operator[]() [2/2]

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

Definition at line 137 of file usShrinkableVector.h.

◆ pop_back()

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

Definition at line 107 of file usShrinkableVector.h.

◆ size()

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

Definition at line 122 of file usShrinkableVector.h.


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