Main Page
Groups
Namespace List
Class Hierarchy
Alphabetical List
Compound List
File
List
Namespace Members
Compound Members
File Members
Concepts
Array class with size defined at construction time.
More...
#include <itkArray.h>
Inheritance diagram for itk::Array< TValueType >:
[legend]Collaboration diagram for itk::Array< TValueType >:
[legend]List of all members.
Detailed Description
template<typename TValueType>
class itk::Array< TValueType >
Array class with size defined at construction time.
This class derives from the vnl_vector<> class. Its size is assigned at construction time (run time) and can not be changed afterwards except by using assignment to another Array.
The class is templated over the type of the elements.
Template parameters for class Array:
- TValueType = Element type stored at each location in the array.
Definition at line 44 of file itkArray.h.
Member Typedef Documentation
|
The element type stored at each location in the Array. Definition at line 49 of file itkArray.h. |
Constructor & Destructor Documentation
|
Default constructor. It is created with an empty array it has to be allocated later by assignment |
template<typename TValueType> |
itk::Array< TValueType >::Array |
( |
unsigned int |
dimension |
) |
|
|
|
Constructor with size. Size can only be changed by assignment |
template<typename TValueType> |
itk::Array< TValueType >::~Array |
( |
|
) |
[inline] |
|
|
This destructor is not virtual for performance reasons. However, this means that subclasses cannot allocate memory. Definition at line 82 of file itkArray.h. |
Member Function Documentation
template<typename TValueType> |
void itk::Array< TValueType >::Fill |
( |
TValueType const & |
v |
) |
[inline] |
|
|
Set the all the elements of the array to the specified value Definition at line 61 of file itkArray.h. |
template<typename TValueType> |
const TValueType& itk::Array< TValueType >::GetElement |
( |
unsigned int |
i |
) |
const [inline] |
|
template<typename TValueType> |
unsigned int itk::Array< TValueType >::GetNumberOfElements |
( |
void |
|
) |
const [inline] |
|
template<typename TValueType> |
void itk::Array< TValueType >::SetElement |
( |
unsigned int |
i, |
|
|
const TValueType & |
value |
|
) |
[inline] |
|
template<typename TValueType> |
unsigned int itk::Array< TValueType >::Size |
( |
void |
|
) |
const [inline] |
|
The documentation for this class was generated from the following file:
Generated at Sat Mar 31 02:50:29 2007 for ITK by
1.3.8 written by Dimitri van Heesch,
© 1997-2000