Main Page
Groups
Namespace List
Class Hierarchy
Alphabetical List
Compound List
File
List
Namespace Members
Compound Members
File Members
Concepts
itk::FixedArray< TValueType, VLength > Class Template Reference
[Data Representation Objects]
Simulate a standard C array with copy semnatics.
More...
#include <itkFixedArray.h>
Inheritance diagram for itk::FixedArray:
[legend]List of all members.
Detailed Description
template<typename TValueType, unsigned int VLength = 3>
class itk::FixedArray< TValueType, VLength >
Simulate a standard C array with copy semnatics.
Simulates a standard C array, except that copy semantics are used instead of reference semantics. Also, arrays of different sizes cannot be assigned to one another, and size information is known for function returns.
Template parameters for class FixedArray:
- TValueType = Element type stored at each location in the array.
- VLength = Length of the array.
The length of the array is fixed at compile time. If you wish to specify the length of the array at run-time, use the class itk::Array. If you wish to change to change the length of the array at run-time, you're best off using std::vector<>.
Definition at line 45 of file itkFixedArray.h.
Member Typedef Documentation
template<typename TValueType, unsigned int VLength = 3> |
typedef ValueType itk::FixedArray< TValueType, VLength >::CArray[VLength]
|
|
template<typename TValueType, unsigned int VLength = 3> |
typedef const ValueType* itk::FixedArray< TValueType, VLength >::const_pointer
|
|
template<typename TValueType, unsigned int VLength = 3> |
typedef const ValueType& itk::FixedArray< TValueType, VLength >::const_reference
|
|
template<typename TValueType, unsigned int VLength = 3> |
typedef const ValueType* itk::FixedArray< TValueType, VLength >::ConstIterator
|
|
|
A const iterator through the array.
Reimplemented in itk::ContinuousIndex< TCoordRep, VIndexDimension >, itk::Point< TCoordRep, NPointDimension >, itk::Point< double, VImageDimension >, itk::Point< TCoordRep, VIndexDimension >, itk::Point< double, NDimensions >, and itk::Point< double, TPointDimension >.
Definition at line 61 of file itkFixedArray.h.
Referenced by itk::FixedArray< int, NCovariantVectorDimension >::GetDataPointer(). |
template<typename TValueType, unsigned int VLength = 3> |
typedef ValueType* itk::FixedArray< TValueType, VLength >::Iterator
|
|
|
An iterator through the array.
Reimplemented in itk::ContinuousIndex< TCoordRep, VIndexDimension >, itk::Point< TCoordRep, NPointDimension >, itk::Point< double, VImageDimension >, itk::Point< TCoordRep, VIndexDimension >, itk::Point< double, NDimensions >, and itk::Point< double, TPointDimension >.
Definition at line 58 of file itkFixedArray.h.
Referenced by itk::FixedArray< int, NCovariantVectorDimension >::GetDataPointer(). |
template<typename TValueType, unsigned int VLength = 3> |
typedef ValueType* itk::FixedArray< TValueType, VLength >::pointer
|
|
template<typename TValueType, unsigned int VLength = 3> |
typedef ValueType& itk::FixedArray< TValueType, VLength >::reference
|
|
template<typename TValueType, unsigned int VLength = 3> |
typedef unsigned int itk::FixedArray< TValueType, VLength >::SizeType
|
|
template<typename TValueType, unsigned int VLength = 3> |
typedef TValueType itk::FixedArray< TValueType, VLength >::ValueType
|
|
|
The element type stored at each location in the FixedArray.
Reimplemented in itk::ContinuousIndex< TCoordRep, VIndexDimension >, itk::CovariantVector< T, NCovariantVectorDimension >, itk::Point< TCoordRep, NPointDimension >, itk::Vector< T, NVectorDimension >, itk::CovariantVector< double, VImageDimension >, itk::CovariantVector< double, 3 >, itk::CovariantVector< double, 2 >, itk::CovariantVector< double, VDimension >, itk::CovariantVector< double, TPointDimension >, itk::CovariantVector< int, 3 >, itk::Point< double, VImageDimension >, itk::Point< TCoordRep, VIndexDimension >, itk::Point< double, NDimensions >, itk::Point< double, TPointDimension >, itk::Vector< TScalarType, itkGetStaticConstMacro(SpaceDimension), and itk::Vector< double, VDimension >.
Definition at line 52 of file itkFixedArray.h.
Referenced by itk::FixedArray< int, NCovariantVectorDimension >::GetDataPointer(), and itk::FixedArray< int, NCovariantVectorDimension >::operator[](). |
Constructor & Destructor Documentation
template<typename TValueType, unsigned int VLength = 3> |
itk::FixedArray< TValueType, VLength >::FixedArray |
( |
|
) |
|
|
template<typename TValueType, unsigned int VLength = 3> |
itk::FixedArray< TValueType, VLength >::FixedArray |
( |
const FixedArray< TValueType, VLength > & |
r |
) |
|
|
template<typename TValueType, unsigned int VLength = 3> |
itk::FixedArray< TValueType, VLength >::FixedArray |
( |
const ValueType |
r[VLength] |
) |
|
|
template<typename TValueType, unsigned int VLength = 3> |
itk::FixedArray< TValueType, VLength >::~FixedArray |
( |
|
) |
|
|
|
This destructor is not virtual for performance reasons. However, this means that subclasses cannot allocate memory. |
Member Function Documentation
template<typename TValueType, unsigned int VLength = 3> |
ConstIterator itk::FixedArray< TValueType, VLength >::Begin |
( |
|
) |
const |
|
|
Get various iterators to the array. |
template<typename TValueType, unsigned int VLength = 3> |
Iterator itk::FixedArray< TValueType, VLength >::Begin |
( |
|
) |
|
|
|
Get various iterators to the array. |
template<typename TValueType, unsigned int VLength = 3> |
ConstIterator itk::FixedArray< TValueType, VLength >::End |
( |
|
) |
const |
|
|
Get various iterators to the array. |
template<typename TValueType, unsigned int VLength = 3> |
Iterator itk::FixedArray< TValueType, VLength >::End |
( |
|
) |
|
|
|
Get various iterators to the array. |
template<typename TValueType, unsigned int VLength = 3> |
void itk::FixedArray< TValueType, VLength >::Fill |
( |
const ValueType & |
|
) |
|
|
|
Get various iterators to the array. |
template<typename TValueType, unsigned int VLength = 3> |
FixedArray itk::FixedArray< TValueType, VLength >::Filled |
( |
const ValueType & |
|
) |
[static] |
|
template<typename TValueType, unsigned int VLength = 3> |
const ValueType* itk::FixedArray< TValueType, VLength >::GetDataPointer |
( |
|
) |
const [inline] |
|
template<typename TValueType, unsigned int VLength = 3> |
ValueType* itk::FixedArray< TValueType, VLength >::GetDataPointer |
( |
|
) |
[inline] |
|
template<typename TValueType, unsigned int VLength = 3> |
itk::FixedArray< TValueType, VLength >::itkStaticConstMacro |
( |
Length |
, |
|
|
unsigned |
int, |
|
|
VLength |
|
|
) |
|
|
template<typename TValueType, unsigned int VLength = 3> |
bool itk::FixedArray< TValueType, VLength >::operator!= |
( |
const FixedArray< TValueType, VLength > & |
r |
) |
const [inline] |
|
|
Operators == and != are used to compare whether two arrays are equal. Note that arrays are equal when the number of components (size) is the same, and each component value is equal.
Definition at line 127 of file itkFixedArray.h. |
template<typename TValueType, unsigned int VLength = 3> |
FixedArray& itk::FixedArray< TValueType, VLength >::operator= |
( |
const ValueType |
r[VLength] |
) |
|
|
|
Operator= defined for a variety of types. |
template<typename TValueType, unsigned int VLength = 3> |
FixedArray& itk::FixedArray< TValueType, VLength >::operator= |
( |
const FixedArray< TValueType, VLength > & |
r |
) |
|
|
|
Operator= defined for a variety of types. |
template<typename TValueType, unsigned int VLength = 3> |
bool itk::FixedArray< TValueType, VLength >::operator== |
( |
const FixedArray< TValueType, VLength > & |
r |
) |
const |
|
|
Operators == and != are used to compare whether two arrays are equal. Note that arrays are equal when the number of components (size) is the same, and each component value is equal. |
template<typename TValueType, unsigned int VLength = 3> |
const_reference itk::FixedArray< TValueType, VLength >::operator[] |
( |
unsigned long |
index |
) |
const [inline] |
|
|
Allow the FixedArray to be indexed normally. No bounds checking is done. The separate versions are a work-around for an integer conversion bug in Visual C++.
Definition at line 145 of file itkFixedArray.h. |
template<typename TValueType, unsigned int VLength = 3> |
reference itk::FixedArray< TValueType, VLength >::operator[] |
( |
unsigned long |
index |
) |
[inline] |
|
|
Allow the FixedArray to be indexed normally. No bounds checking is done. The separate versions are a work-around for an integer conversion bug in Visual C++.
Definition at line 144 of file itkFixedArray.h. |
template<typename TValueType, unsigned int VLength = 3> |
const_reference itk::FixedArray< TValueType, VLength >::operator[] |
( |
long |
index |
) |
const [inline] |
|
|
Allow the FixedArray to be indexed normally. No bounds checking is done. The separate versions are a work-around for an integer conversion bug in Visual C++.
Definition at line 143 of file itkFixedArray.h. |
template<typename TValueType, unsigned int VLength = 3> |
reference itk::FixedArray< TValueType, VLength >::operator[] |
( |
long |
index |
) |
[inline] |
|
|
Allow the FixedArray to be indexed normally. No bounds checking is done. The separate versions are a work-around for an integer conversion bug in Visual C++.
Definition at line 142 of file itkFixedArray.h. |
template<typename TValueType, unsigned int VLength = 3> |
const_reference itk::FixedArray< TValueType, VLength >::operator[] |
( |
unsigned int |
index |
) |
const [inline] |
|
|
Allow the FixedArray to be indexed normally. No bounds checking is done. The separate versions are a work-around for an integer conversion bug in Visual C++.
Definition at line 141 of file itkFixedArray.h. |
template<typename TValueType, unsigned int VLength = 3> |
reference itk::FixedArray< TValueType, VLength >::operator[] |
( |
unsigned int |
index |
) |
[inline] |
|
|
Allow the FixedArray to be indexed normally. No bounds checking is done. The separate versions are a work-around for an integer conversion bug in Visual C++.
Definition at line 140 of file itkFixedArray.h. |
template<typename TValueType, unsigned int VLength = 3> |
const_reference itk::FixedArray< TValueType, VLength >::operator[] |
( |
int |
index |
) |
const [inline] |
|
|
Allow the FixedArray to be indexed normally. No bounds checking is done. The separate versions are a work-around for an integer conversion bug in Visual C++.
Definition at line 139 of file itkFixedArray.h. |
template<typename TValueType, unsigned int VLength = 3> |
reference itk::FixedArray< TValueType, VLength >::operator[] |
( |
int |
index |
) |
[inline] |
|
|
Allow the FixedArray to be indexed normally. No bounds checking is done. The separate versions are a work-around for an integer conversion bug in Visual C++.
Definition at line 138 of file itkFixedArray.h. |
template<typename TValueType, unsigned int VLength = 3> |
const_reference itk::FixedArray< TValueType, VLength >::operator[] |
( |
unsigned short |
index |
) |
const [inline] |
|
|
Allow the FixedArray to be indexed normally. No bounds checking is done. The separate versions are a work-around for an integer conversion bug in Visual C++.
Definition at line 137 of file itkFixedArray.h. |
template<typename TValueType, unsigned int VLength = 3> |
reference itk::FixedArray< TValueType, VLength >::operator[] |
( |
unsigned short |
index |
) |
[inline] |
|
|
Allow the FixedArray to be indexed normally. No bounds checking is done. The separate versions are a work-around for an integer conversion bug in Visual C++.
Definition at line 136 of file itkFixedArray.h. |
template<typename TValueType, unsigned int VLength = 3> |
const_reference itk::FixedArray< TValueType, VLength >::operator[] |
( |
short |
index |
) |
const [inline] |
|
|
Allow the FixedArray to be indexed normally. No bounds checking is done. The separate versions are a work-around for an integer conversion bug in Visual C++.
Definition at line 135 of file itkFixedArray.h. |
template<typename TValueType, unsigned int VLength = 3> |
reference itk::FixedArray< TValueType, VLength >::operator[] |
( |
short |
index |
) |
[inline] |
|
|
Allow the FixedArray to be indexed normally. No bounds checking is done. The separate versions are a work-around for an integer conversion bug in Visual C++.
Definition at line 134 of file itkFixedArray.h. |
template<typename TValueType, unsigned int VLength = 3> |
ConstReverseIterator itk::FixedArray< TValueType, VLength >::rBegin |
( |
|
) |
const |
|
|
Get various iterators to the array. |
template<typename TValueType, unsigned int VLength = 3> |
ReverseIterator itk::FixedArray< TValueType, VLength >::rBegin |
( |
|
) |
|
|
|
Get various iterators to the array. |
template<typename TValueType, unsigned int VLength = 3> |
ConstReverseIterator itk::FixedArray< TValueType, VLength >::rEnd |
( |
|
) |
const |
|
|
Get various iterators to the array. |
template<typename TValueType, unsigned int VLength = 3> |
ReverseIterator itk::FixedArray< TValueType, VLength >::rEnd |
( |
|
) |
|
|
|
Get various iterators to the array. |
template<typename TValueType, unsigned int VLength = 3> |
SizeType itk::FixedArray< TValueType, VLength >::Size |
( |
|
) |
const |
|
|
Get various iterators to the array. |
The documentation for this class was generated from the following file:
Generated at Wed Mar 12 01:16:11 2003 for ITK by
1.2.15 written by Dimitri van Heesch,
© 1997-2000