ITK
4.2.0
Insight Segmentation and Registration Toolkit
|
#include <itkFixedArray.h>
Classes | |
class | ConstReverseIterator |
A const reverse iterator through an array.
. More... | |
class | ReverseIterator |
A reverse iterator through an array.
. More... |
Public Types | |
typedef ValueType | CArray [VLength] |
typedef const ValueType * | const_pointer |
typedef const ValueType & | const_reference |
typedef const ValueType * | ConstIterator |
typedef ValueType * | Iterator |
typedef ValueType * | pointer |
typedef ValueType & | reference |
typedef unsigned int | SizeType |
typedef TValueType | ValueType |
Public Member Functions | |
Iterator | Begin () |
ConstIterator | Begin () const |
Iterator | End () |
ConstIterator | End () const |
void | Fill (const ValueType &) |
ValueType * | GetDataPointer () |
const ValueType * | GetDataPointer () const |
bool | operator!= (const FixedArray &r) const |
FixedArray & | operator= (const ValueType r[VLength]) |
bool | operator== (const FixedArray &r) const |
ReverseIterator | rBegin () |
ConstReverseIterator | rBegin () const |
ReverseIterator | rEnd () |
ConstReverseIterator | rEnd () const |
SizeType | Size () const |
FixedArray () | |
FixedArray (const ValueType r[VLength]) | |
FixedArray (const ValueType &r) | |
template<class TFixedArrayValueType > | |
FixedArray (const FixedArray< TFixedArrayValueType, VLength > &r) | |
template<class TFixedArrayValueType > | |
FixedArray & | operator= (const FixedArray< TFixedArrayValueType, VLength > &r) |
reference | operator[] (short index) |
const_reference | operator[] (short index) const |
reference | operator[] (unsigned short index) |
const_reference | operator[] (unsigned short index) const |
reference | operator[] (int index) |
const_reference | operator[] (int index) const |
reference | operator[] (unsigned int index) |
const_reference | operator[] (unsigned int index) const |
reference | operator[] (long index) |
const_reference | operator[] (long index) const |
reference | operator[] (unsigned long index) |
const_reference | operator[] (unsigned long index) const |
reference | operator[] (long long index) |
const_reference | operator[] (long long index) const |
reference | operator[] (unsigned long long index) |
const_reference | operator[] (unsigned long long index) const |
void | SetElement (unsigned short index, const_reference value) |
const_reference | GetElement (unsigned short index) const |
Static Public Member Functions | |
static FixedArray | Filled (const ValueType &) |
Static Public Attributes | |
static const unsigned int | Dimension = VLength |
static const unsigned int | Length = VLength |
Private Attributes | |
CArray | m_InternalArray |
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.
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 63 of file itkFixedArray.h.
typedef ValueType itk::FixedArray< TValueType, VLength >::CArray[VLength] |
A type representing the C-array version of this FixedArray.
Definition at line 76 of file itkFixedArray.h.
typedef const ValueType* itk::FixedArray< TValueType, VLength >::const_pointer |
A const pointer to the ValueType.
Definition at line 132 of file itkFixedArray.h.
typedef const ValueType& itk::FixedArray< TValueType, VLength >::const_reference |
A const reference to the ValueType.
Definition at line 138 of file itkFixedArray.h.
typedef const ValueType* itk::FixedArray< TValueType, VLength >::ConstIterator |
A const iterator through the array.
Reimplemented in itk::Point< TCoordRep, NPointDimension >, itk::Point< TOutput, VIndexDimension >, itk::Point< float, VIndexDimension >, itk::Point< double, VImageDimension >, itk::Point< TCoordRep, VPointDimension >, itk::Point< TCoordRep, VIndexDimension >, itk::Point< PointValueType, VImageDimension >, itk::Point< TScalarType, NDimensions >, itk::Point< double, VIndexDimension >, itk::Point< CoordRepType, itkGetStaticConstMacro(ImageDimension) >, itk::Point< double, 3 >, itk::Point< double, TDimension >, itk::Point< double, 2 >, itk::Point< TScalarType, itkGetStaticConstMacro(InputSpaceDimension)>, itk::Point< double, itkGetStaticConstMacro(ImageDimension) >, itk::Point< double, TPointDimension >, itk::ContinuousIndex< TCoordRep, VIndexDimension >, itk::ContinuousIndex< double, ImageDimension >, itk::ContinuousIndex< TOutput, itkGetStaticConstMacro(ImageDimension) >, itk::ContinuousIndex< float, itkGetStaticConstMacro(ImageDimension) >, itk::ContinuousIndex< TCoordRep, itkGetStaticConstMacro(ImageDimension) >, and itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >.
Definition at line 82 of file itkFixedArray.h.
typedef ValueType* itk::FixedArray< TValueType, VLength >::Iterator |
An iterator through the array.
Reimplemented in itk::Point< TCoordRep, NPointDimension >, itk::Point< TOutput, VIndexDimension >, itk::Point< float, VIndexDimension >, itk::Point< double, VImageDimension >, itk::Point< TCoordRep, VPointDimension >, itk::Point< TCoordRep, VIndexDimension >, itk::Point< PointValueType, VImageDimension >, itk::Point< TScalarType, NDimensions >, itk::Point< double, VIndexDimension >, itk::Point< CoordRepType, itkGetStaticConstMacro(ImageDimension) >, itk::Point< double, 3 >, itk::Point< double, TDimension >, itk::Point< double, 2 >, itk::Point< TScalarType, itkGetStaticConstMacro(InputSpaceDimension)>, itk::Point< double, itkGetStaticConstMacro(ImageDimension) >, itk::Point< double, TPointDimension >, itk::ContinuousIndex< TCoordRep, VIndexDimension >, itk::ContinuousIndex< double, ImageDimension >, itk::ContinuousIndex< TOutput, itkGetStaticConstMacro(ImageDimension) >, itk::ContinuousIndex< float, itkGetStaticConstMacro(ImageDimension) >, itk::ContinuousIndex< TCoordRep, itkGetStaticConstMacro(ImageDimension) >, and itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >.
Definition at line 79 of file itkFixedArray.h.
typedef ValueType* itk::FixedArray< TValueType, VLength >::pointer |
A pointer to the ValueType.
Definition at line 129 of file itkFixedArray.h.
typedef ValueType& itk::FixedArray< TValueType, VLength >::reference |
A reference to the ValueType.
Definition at line 135 of file itkFixedArray.h.
typedef unsigned int itk::FixedArray< TValueType, VLength >::SizeType |
Definition at line 140 of file itkFixedArray.h.
typedef TValueType itk::FixedArray< TValueType, VLength >::ValueType |
The element type stored at each location in the FixedArray.
Reimplemented in itk::SymmetricSecondRankTensor< TComponent, NDimension >, itk::SymmetricSecondRankTensor< TComponent, 3 >, itk::DiffusionTensor3D< TComponent >, itk::CovariantVector< T, NVectorDimension >, itk::CovariantVector< double, 3 >, itk::CovariantVector< double, 2 >, itk::CovariantVector< double, VDimension >, itk::CovariantVector< double, TPointDimension >, itk::Vector< T, NVectorDimension >, itk::Vector< double, VImageDimension >, itk::Vector< double, TSampleDimension >, itk::Vector< TScalarType, itkGetStaticConstMacro(OutputSpaceDimension)>, itk::Vector< TScalarType, NDimensions >, itk::Vector< CoordRepType, itkGetStaticConstMacro(SpaceDimension) >, itk::Vector< double, 3 >, itk::Vector< TScalarType, itkGetStaticConstMacro(InputSpaceDimension)>, itk::Vector< float, VDimension3 >, itk::Vector< double, TDimension >, itk::Vector< double, 2 >, itk::Vector< SpacingValueType, VImageDimension >, itk::Vector< NodeValueType,::itk::GetImageDimension< TImageType >::ImageDimension >, itk::Vector< TScalarType, 3 >, itk::Vector< double, VDimension >, itk::Vector< double, itkGetStaticConstMacro(ImageDimension) >, itk::Vector< double, TPointDimension >, itk::Vector< ScalarType, itkGetStaticConstMacro(ImageDimension) >, itk::Vector< int, 2 >, itk::Vector< double, NSpaceDimension >, itk::Vector< TScalarType, 6 >, itk::Point< TCoordRep, NPointDimension >, itk::Point< TOutput, VIndexDimension >, itk::Point< float, VIndexDimension >, itk::Point< double, VImageDimension >, itk::Point< TCoordRep, VPointDimension >, itk::Point< TCoordRep, VIndexDimension >, itk::Point< PointValueType, VImageDimension >, itk::Point< TScalarType, NDimensions >, itk::Point< double, VIndexDimension >, itk::Point< CoordRepType, itkGetStaticConstMacro(ImageDimension) >, itk::Point< double, 3 >, itk::Point< double, TDimension >, itk::Point< double, 2 >, itk::Point< TScalarType, itkGetStaticConstMacro(InputSpaceDimension)>, itk::Point< double, itkGetStaticConstMacro(ImageDimension) >, itk::Point< double, TPointDimension >, itk::ContinuousIndex< TCoordRep, VIndexDimension >, itk::ContinuousIndex< double, ImageDimension >, itk::ContinuousIndex< TOutput, itkGetStaticConstMacro(ImageDimension) >, itk::ContinuousIndex< float, itkGetStaticConstMacro(ImageDimension) >, itk::ContinuousIndex< TCoordRep, itkGetStaticConstMacro(ImageDimension) >, and itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >.
Definition at line 73 of file itkFixedArray.h.
itk::FixedArray< TValueType, VLength >::FixedArray | ( | ) |
Constructors
itk::FixedArray< TValueType, VLength >::FixedArray | ( | const ValueType | r[VLength] | ) |
Constructors
itk::FixedArray< TValueType, VLength >::FixedArray | ( | const ValueType & | r | ) |
Constructors
|
inline |
Constructor to initialize a fixed array from another of any data type
Definition at line 150 of file itkFixedArray.h.
Iterator itk::FixedArray< TValueType, VLength >::Begin | ( | ) |
Get various iterators to the array.
Referenced by itk::FixedArray< TScalarType, NPointDimension >::FixedArray(), and itk::FixedArray< TScalarType, NPointDimension >::operator=().
ConstIterator itk::FixedArray< TValueType, VLength >::Begin | ( | ) | const |
Iterator itk::FixedArray< TValueType, VLength >::End | ( | ) |
ConstIterator itk::FixedArray< TValueType, VLength >::End | ( | ) | const |
void itk::FixedArray< TValueType, VLength >::Fill | ( | const ValueType & | ) |
Referenced by itk::IdentityTransform< TScalarType, NDimensions >::ComputeJacobianWithRespectToPosition(), itk::fem::Solver< TDimension >::InitializeInterpolationGrid(), itk::LevelSetBase< TInput, VDimension, TOutput, TDomain >::LevelSetDataType::LevelSetDataType(), itk::NumericTraits< FixedArray< T, D > >::SetLength(), itk::DiscreteGaussianDerivativeImageFilter< TInputImage, TOutputImage >::SetMaximumError(), itk::DisplacementFieldToBSplineImageFilter< TInputImage, TOutputImage >::SetNumberOfFittingLevels(), itk::N4BiasFieldCorrectionImageFilter< TInputImage, TMaskImage, TOutputImage >::SetNumberOfFittingLevels(), itk::DiscreteGaussianDerivativeImageFilter< TInputImage, TOutputImage >::SetOrder(), and itk::DiscreteGaussianDerivativeImageFilter< TInputImage, TOutputImage >::SetVariance().
|
static |
|
inline |
Return a pointer to the data.
Definition at line 227 of file itkFixedArray.h.
Referenced by itk::Accessor::RGBToVectorPixelAccessor< TImage::PixelType::ComponentType >::Get(), itk::Accessor::VectorToRGBPixelAccessor< TImage::PixelType::ValueType >::Get(), itk::MetaArrayWriter::SetInput(), and itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::SetOutputPixel().
|
inline |
Definition at line 232 of file itkFixedArray.h.
|
inline |
Set/Get element methods are more convenient in wrapping languages
Definition at line 223 of file itkFixedArray.h.
|
inline |
Definition at line 196 of file itkFixedArray.h.
|
inline |
This destructor is not virtual for performance reasons. However, this means that subclasses cannot allocate memory.
The destructor is PURPOSELY NOT DEFINED, in order to prevent inefficient byte alignment of arrays of this object.
~FixedArray();
For a full discussion, see http://www.itk.org/mailman/private/insight-developers/2008-June/010480.html Operator= defined for a variety of types.
Definition at line 176 of file itkFixedArray.h.
Referenced by itk::SymmetricSecondRankTensor< TComponent, 3 >::operator=().
FixedArray& itk::FixedArray< TValueType, VLength >::operator= | ( | const ValueType | r[VLength] | ) |
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.
Referenced by itk::FixedArray< TScalarType, NPointDimension >::operator!=().
|
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 202 of file itkFixedArray.h.
|
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 203 of file itkFixedArray.h.
|
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 204 of file itkFixedArray.h.
|
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 205 of file itkFixedArray.h.
|
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 206 of file itkFixedArray.h.
|
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 207 of file itkFixedArray.h.
|
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 208 of file itkFixedArray.h.
|
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 209 of file itkFixedArray.h.
|
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 210 of file itkFixedArray.h.
|
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 211 of file itkFixedArray.h.
|
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 212 of file itkFixedArray.h.
|
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 213 of file itkFixedArray.h.
|
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 214 of file itkFixedArray.h.
|
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 215 of file itkFixedArray.h.
|
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 216 of file itkFixedArray.h.
|
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 217 of file itkFixedArray.h.
ReverseIterator itk::FixedArray< TValueType, VLength >::rBegin | ( | ) |
ConstReverseIterator itk::FixedArray< TValueType, VLength >::rBegin | ( | ) | const |
ReverseIterator itk::FixedArray< TValueType, VLength >::rEnd | ( | ) |
ConstReverseIterator itk::FixedArray< TValueType, VLength >::rEnd | ( | ) | const |
|
inline |
Set/Get element methods are more convenient in wrapping languages
Definition at line 221 of file itkFixedArray.h.
SizeType itk::FixedArray< TValueType, VLength >::Size | ( | ) | const |
|
static |
Dimension constant
Reimplemented in itk::SymmetricSecondRankTensor< TComponent, NDimension >, itk::SymmetricSecondRankTensor< TComponent, 3 >, itk::CovariantVector< T, NVectorDimension >, itk::CovariantVector< double, 3 >, itk::CovariantVector< double, 2 >, itk::CovariantVector< double, VDimension >, itk::CovariantVector< double, TPointDimension >, itk::Vector< T, NVectorDimension >, itk::Vector< double, VImageDimension >, itk::Vector< double, TSampleDimension >, itk::Vector< TScalarType, itkGetStaticConstMacro(OutputSpaceDimension)>, itk::Vector< TScalarType, NDimensions >, itk::Vector< CoordRepType, itkGetStaticConstMacro(SpaceDimension) >, itk::Vector< double, 3 >, itk::Vector< TScalarType, itkGetStaticConstMacro(InputSpaceDimension)>, itk::Vector< float, VDimension3 >, itk::Vector< double, TDimension >, itk::Vector< double, 2 >, itk::Vector< SpacingValueType, VImageDimension >, itk::Vector< NodeValueType,::itk::GetImageDimension< TImageType >::ImageDimension >, itk::Vector< TScalarType, 3 >, itk::Vector< double, VDimension >, itk::Vector< double, itkGetStaticConstMacro(ImageDimension) >, itk::Vector< double, TPointDimension >, itk::Vector< ScalarType, itkGetStaticConstMacro(ImageDimension) >, itk::Vector< int, 2 >, itk::Vector< double, NSpaceDimension >, itk::Vector< TScalarType, 6 >, itk::RGBPixel< TComponent >, itk::RGBPixel< float >, itk::RGBPixel< TPixel >, itk::RGBAPixel< TComponent >, itk::RGBAPixel< TComponentType >, and itk::RGBAPixel< float >.
Definition at line 70 of file itkFixedArray.h.
|
static |
Length constant
Reimplemented in itk::RGBPixel< TComponent >, itk::RGBPixel< float >, itk::RGBPixel< TPixel >, itk::RGBAPixel< TComponent >, itk::RGBAPixel< TComponentType >, and itk::RGBAPixel< float >.
Definition at line 67 of file itkFixedArray.h.
|
private |
Internal C array representation.
Definition at line 260 of file itkFixedArray.h.
Referenced by itk::FixedArray< TScalarType, NPointDimension >::GetDataPointer(), itk::FixedArray< TScalarType, NPointDimension >::GetElement(), itk::FixedArray< TScalarType, NPointDimension >::operator=(), itk::FixedArray< TScalarType, NPointDimension >::operator[](), and itk::FixedArray< TScalarType, NPointDimension >::SetElement().