#include <mitkSTLVectorContainer.h>
Public Types | |
typedef STLVectorContainer< T > | Self |
typedef itk::SimpleDataObjectDecorator < std::vector< T > > | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer < const Self > | ConstPointer |
typedef T | ValueType |
typedef std::vector< ValueType > | STLVectorContainerType |
Public Member Functions | |
virtual const char * | GetClassName () const |
unsigned int | GetSize () |
void | Clear () |
void | Resize (unsigned int size) |
void | SetElement (const unsigned int &index, const ValueType &element) |
ValueType & | GetElement (const unsigned int &index) |
Static Public Member Functions | |
static Pointer | New () |
Definition at line 29 of file mitkSTLVectorContainer.h.
typedef itk::SmartPointer<const Self> mitk::STLVectorContainer< T >::ConstPointer |
Definition at line 36 of file mitkSTLVectorContainer.h.
typedef itk::SmartPointer<Self> mitk::STLVectorContainer< T >::Pointer |
Definition at line 35 of file mitkSTLVectorContainer.h.
typedef STLVectorContainer<T> mitk::STLVectorContainer< T >::Self |
Definition at line 33 of file mitkSTLVectorContainer.h.
typedef std::vector<ValueType> mitk::STLVectorContainer< T >::STLVectorContainerType |
Definition at line 42 of file mitkSTLVectorContainer.h.
typedef itk::SimpleDataObjectDecorator< std::vector<T> > mitk::STLVectorContainer< T >::Superclass |
Definition at line 34 of file mitkSTLVectorContainer.h.
typedef T mitk::STLVectorContainer< T >::ValueType |
Definition at line 38 of file mitkSTLVectorContainer.h.
void mitk::STLVectorContainer< T >::Clear | ( | ) |
Emptys the undelying stl-vector. That means, that after a call to this function, GetSize() returns 0.
Definition at line 30 of file mitkSTLVectorContainer.txx.
{
return this->Get().clear();
this->Modified();
}
virtual const char* mitk::STLVectorContainer< T >::GetClassName | ( | ) | const [virtual] |
mitk::STLVectorContainer< T >::ValueType & mitk::STLVectorContainer< T >::GetElement | ( | const unsigned int & | index ) |
returns the n'th element of the undelying stl vector If the index is out of range, an assertion is raised!
Definition at line 63 of file mitkSTLVectorContainer.txx.
{
assert( index < this->Get().size() );
return this->Get()[index];
}
unsigned int mitk::STLVectorContainer< T >::GetSize | ( | ) |
Returns the number of elements contained in the underlying stl-vector
Definition at line 24 of file mitkSTLVectorContainer.txx.
{
return this->Get().size();
}
static Pointer mitk::STLVectorContainer< T >::New | ( | ) | [static] |
void mitk::STLVectorContainer< T >::Resize | ( | unsigned int | size ) |
Resizes the underlying stl vector to the given size.
Definition at line 40 of file mitkSTLVectorContainer.txx.
{ this->Get().resize( size ); this->Modified(); }
void mitk::STLVectorContainer< T >::SetElement | ( | const unsigned int & | index, |
const ValueType & | element | ||
) |
sets the n'th element of the underluing stl vector. if the index is out of range, an assertion is raised