Public Types | Public Member Functions | Static Public Member Functions

mitk::STLVectorContainer< T > Class Template Reference

#include <mitkSTLVectorContainer.h>

List of all members.

Public Types

typedef STLVectorContainer< T > Self
typedef
itk::SimpleDataObjectDecorator
< std::vector< T > > 
Superclass
typedef itk::SmartPointer< SelfPointer
typedef itk::SmartPointer
< const Self
ConstPointer
typedef T ValueType
typedef std::vector< ValueTypeSTLVectorContainerType

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)
ValueTypeGetElement (const unsigned int &index)

Static Public Member Functions

static Pointer New ()

Detailed Description

template<typename T>
class mitk::STLVectorContainer< T >

Definition at line 29 of file mitkSTLVectorContainer.h.


Member Typedef Documentation

template<typename T>
typedef itk::SmartPointer<const Self> mitk::STLVectorContainer< T >::ConstPointer

Definition at line 36 of file mitkSTLVectorContainer.h.

template<typename T>
typedef itk::SmartPointer<Self> mitk::STLVectorContainer< T >::Pointer

Definition at line 35 of file mitkSTLVectorContainer.h.

template<typename T>
typedef STLVectorContainer<T> mitk::STLVectorContainer< T >::Self

Definition at line 33 of file mitkSTLVectorContainer.h.

template<typename T>
typedef std::vector<ValueType> mitk::STLVectorContainer< T >::STLVectorContainerType

Definition at line 42 of file mitkSTLVectorContainer.h.

template<typename T>
typedef itk::SimpleDataObjectDecorator< std::vector<T> > mitk::STLVectorContainer< T >::Superclass

Definition at line 34 of file mitkSTLVectorContainer.h.

template<typename T>
typedef T mitk::STLVectorContainer< T >::ValueType

Definition at line 38 of file mitkSTLVectorContainer.h.


Member Function Documentation

template<typename T >
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();
}
template<typename T>
virtual const char* mitk::STLVectorContainer< T >::GetClassName (  ) const [virtual]
template<typename T >
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];
    
}
template<typename T >
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();    
}
template<typename T>
static Pointer mitk::STLVectorContainer< T >::New (  ) [static]
template<typename T >
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();
}
template<typename T>
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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines