ITK  4.6.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | List of all members
itk::Array2D< TValue > Class Template Reference

#include <itkArray2D.h>

+ Inheritance diagram for itk::Array2D< TValue >:
+ Collaboration diagram for itk::Array2D< TValue >:

Detailed Description

template<typename TValue>
class itk::Array2D< TValue >

Array2D class representing a 2D array with size defined at construction time.

This class derives from the vnl_matrix<> class. Its size is assigned at construction time (run time) and can not be changed afterwards.

The class is templated over the type of the elements.

Template parameters for class Array2D:

Definition at line 44 of file itkArray2D.h.

Public Types

typedef Array2D Self
 
typedef TValue ValueType
 
typedef vnl_matrix< TValue > VnlMatrixType
 

Public Member Functions

 Array2D ()
 
 Array2D (unsigned int rows, unsigned int cols)
 
 Array2D (const Self &array)
 
 Array2D (const VnlMatrixType &matrix)
 
void Fill (TValue const &v)
 
const Selfoperator= (const Self &array)
 
const Selfoperator= (const VnlMatrixType &matrix)
 
void SetSize (unsigned int m, unsigned int n)
 
 ~Array2D ()
 

Member Typedef Documentation

template<typename TValue>
typedef Array2D itk::Array2D< TValue >::Self

Definition at line 50 of file itkArray2D.h.

template<typename TValue>
typedef TValue itk::Array2D< TValue >::ValueType

The element type stored at each location in the Array2D.

Definition at line 49 of file itkArray2D.h.

template<typename TValue>
typedef vnl_matrix< TValue > itk::Array2D< TValue >::VnlMatrixType

Definition at line 51 of file itkArray2D.h.

Constructor & Destructor Documentation

template<typename TValue>
itk::Array2D< TValue >::Array2D ( )
template<typename TValue>
itk::Array2D< TValue >::Array2D ( unsigned int  rows,
unsigned int  cols 
)
template<typename TValue>
itk::Array2D< TValue >::Array2D ( const Self array)
template<typename TValue>
itk::Array2D< TValue >::Array2D ( const VnlMatrixType matrix)
template<typename TValue>
itk::Array2D< TValue >::~Array2D ( )
inline

This destructor is not virtual for performance reasons. However, this means that subclasses cannot allocate memory.

Definition at line 69 of file itkArray2D.h.

Member Function Documentation

template<typename TValue>
void itk::Array2D< TValue >::Fill ( TValue const &  v)
inline

Definition at line 62 of file itkArray2D.h.

template<typename TValue>
const Self& itk::Array2D< TValue >::operator= ( const Self array)
template<typename TValue>
const Self& itk::Array2D< TValue >::operator= ( const VnlMatrixType matrix)
template<typename TValue>
void itk::Array2D< TValue >::SetSize ( unsigned int  m,
unsigned int  n 
)

Destructively set the size to that given. Will lose data.


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