ITK
4.8.0
Insight Segmentation and Registration Toolkit
|
#include <itkFixedArray.h>
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.
TValue | 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 50 of file itkFixedArray.h.
Classes | |
class | ConstReverseIterator |
class | ReverseIterator |
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 TValue | ValueType |
Public Member Functions | |
Iterator | Begin () |
ConstIterator | Begin () const |
Iterator | End () |
ConstIterator | End () const |
void | Fill (const ValueType &) |
template<typename TScalarValue > | |
FixedArray (const TScalarValue *r) | |
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<typename TFixedArrayValueType > | |
FixedArray (const FixedArray< TFixedArrayValueType, VLength > &r) | |
template<typename 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 |
typedef ValueType itk::FixedArray< TValue, VLength >::CArray[VLength] |
A type representing the C-array version of this FixedArray.
Definition at line 63 of file itkFixedArray.h.
typedef const ValueType* itk::FixedArray< TValue, VLength >::const_pointer |
A const pointer to the ValueType.
Definition at line 121 of file itkFixedArray.h.
typedef const ValueType& itk::FixedArray< TValue, VLength >::const_reference |
A const reference to the ValueType.
Definition at line 127 of file itkFixedArray.h.
typedef const ValueType* itk::FixedArray< TValue, VLength >::ConstIterator |
A const iterator through the array.
Definition at line 69 of file itkFixedArray.h.
typedef ValueType* itk::FixedArray< TValue, VLength >::Iterator |
An iterator through the array.
Definition at line 66 of file itkFixedArray.h.
typedef ValueType* itk::FixedArray< TValue, VLength >::pointer |
A pointer to the ValueType.
Definition at line 118 of file itkFixedArray.h.
typedef ValueType& itk::FixedArray< TValue, VLength >::reference |
A reference to the ValueType.
Definition at line 124 of file itkFixedArray.h.
typedef unsigned int itk::FixedArray< TValue, VLength >::SizeType |
Definition at line 129 of file itkFixedArray.h.
typedef TValue itk::FixedArray< TValue, VLength >::ValueType |
The element type stored at each location in the FixedArray.
Definition at line 60 of file itkFixedArray.h.
itk::FixedArray< TValue, VLength >::FixedArray | ( | ) |
Constructors
itk::FixedArray< TValue, VLength >::FixedArray | ( | const ValueType | r[VLength] | ) |
Constructors
itk::FixedArray< TValue, VLength >::FixedArray | ( | const ValueType & | r | ) |
Constructors
|
inline |
Constructor to initialize a fixed array from another of any data type
Definition at line 140 of file itkFixedArray.h.
|
inline |
Definition at line 152 of file itkFixedArray.h.
Iterator itk::FixedArray< TValue, VLength >::Begin | ( | ) |
Get various iterators to the array.
Referenced by itk::FixedArray< NeighborhoodType, itkGetStaticConstMacro(ImageDimension) >::FixedArray(), and itk::FixedArray< NeighborhoodType, itkGetStaticConstMacro(ImageDimension) >::operator=().
ConstIterator itk::FixedArray< TValue, VLength >::Begin | ( | ) | const |
Iterator itk::FixedArray< TValue, VLength >::End | ( | ) |
ConstIterator itk::FixedArray< TValue, VLength >::End | ( | ) | const |
void itk::FixedArray< TValue, VLength >::Fill | ( | const ValueType & | ) |
Referenced by itk::DiscreteGaussianDerivativeImageFilter< TInputImage, TOutputImage >::DiscreteGaussianDerivativeImageFilter(), itk::DiscreteGaussianImageFilter< TInputImage, TOutputImage >::DiscreteGaussianImageFilter(), itk::ImageToImageMetric< TFixedImage, TMovingImage >::FixedImageSamplePoint::FixedImageSamplePoint(), itk::VoronoiDiagram2DGenerator< TCoordType >::FortuneSite::FortuneSite(), itk::fem::Solver< TDimension >::InitializeInterpolationGrid(), itk::LabelGeometryImageFilter< TLabelImage, TIntensityImage >::LabelGeometry::LabelGeometry(), itk::BilateralImageFilter< TInputImage, TOutputImage >::SetDomainSigma(), itk::NumericTraits< FixedArray< T, D > >::SetLength(), itk::ZeroCrossingBasedEdgeDetectionImageFilter< TInputImage, TOutputImage >::SetMaximumError(), itk::DiscreteGaussianImageFilter< TInputImage, TOutputImage >::SetMaximumError(), itk::DiscreteGaussianDerivativeImageFilter< TInputImage, TOutputImage >::SetMaximumError(), itk::CannyEdgeDetectionImageFilter< ImageType, ImageType >::SetMaximumError(), itk::DisplacementFieldToBSplineImageFilter< TInputImage, TInputPointSet, TOutputImage >::SetNumberOfFittingLevels(), itk::N4BiasFieldCorrectionImageFilter< TInputImage, TMaskImage, TOutputImage >::SetNumberOfFittingLevels(), itk::DiscreteGaussianDerivativeImageFilter< TInputImage, TOutputImage >::SetOrder(), itk::DiscreteGaussianDerivativeImageFunction< TInputImage, TOutput >::SetOrder(), itk::ImageRegistrationMethodv4< TFixedImage, TMovingImage, TOutputTransform, TVirtualImage, TPointSet >::SetShrinkFactorsPerLevel(), itk::ZeroCrossingBasedEdgeDetectionImageFilter< TInputImage, TOutputImage >::SetVariance(), itk::DiscreteGaussianDerivativeImageFunction< TInputImage, TOutput >::SetVariance(), itk::DiscreteGradientMagnitudeGaussianImageFunction< TInputImage, TOutput >::SetVariance(), itk::DiscreteGaussianImageFilter< TInputImage, TOutputImage >::SetVariance(), itk::DiscreteHessianGaussianImageFunction< TInputImage, TOutput >::SetVariance(), itk::DiscreteGaussianDerivativeImageFilter< TInputImage, TOutputImage >::SetVariance(), itk::CannyEdgeDetectionImageFilter< ImageType, ImageType >::SetVariance(), itk::ShapeLabelObject< TLabel, VImageDimension >::ShapeLabelObject(), itk::MutualInformationImageToImageMetric< TFixedImage, TMovingImage >::SpatialSample::SpatialSample(), itk::StatisticsLabelObject< TLabel, VImageDimension >::StatisticsLabelObject(), and itk::ZeroCrossingBasedEdgeDetectionImageFilter< TInputImage, TOutputImage >::ZeroCrossingBasedEdgeDetectionImageFilter().
|
static |
|
inline |
Return a pointer to the data.
Definition at line 237 of file itkFixedArray.h.
Referenced by itk::FixedArray< NeighborhoodType, itkGetStaticConstMacro(ImageDimension) >::FixedArray(), itk::Accessor::VectorToRGBPixelAccessor< TImage::PixelType::ValueType >::Get(), itk::Accessor::RGBToVectorPixelAccessor< TImage::PixelType::ComponentType >::Get(), itk::MetaArrayWriter::SetInput(), and itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::SetOutputPixel().
|
inline |
Definition at line 242 of file itkFixedArray.h.
|
inline |
Set/Get element methods are more convenient in wrapping languages
Definition at line 233 of file itkFixedArray.h.
|
inline |
Definition at line 194 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.htmlOperator= defined for a variety of types.
Definition at line 172 of file itkFixedArray.h.
Referenced by itk::SymmetricSecondRankTensor< TComponent, 3 >::operator=().
FixedArray& itk::FixedArray< TValue, VLength >::operator= | ( | const ValueType | r[VLength] | ) |
bool itk::FixedArray< TValue, VLength >::operator== | ( | const FixedArray< TValue, 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< NeighborhoodType, itkGetStaticConstMacro(ImageDimension) >::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 200 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 201 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 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 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 220 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 221 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 222 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 223 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 224 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 225 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 226 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 227 of file itkFixedArray.h.
ReverseIterator itk::FixedArray< TValue, VLength >::rBegin | ( | ) |
ConstReverseIterator itk::FixedArray< TValue, VLength >::rBegin | ( | ) | const |
ReverseIterator itk::FixedArray< TValue, VLength >::rEnd | ( | ) |
ConstReverseIterator itk::FixedArray< TValue, VLength >::rEnd | ( | ) | const |
|
inline |
Set/Get element methods are more convenient in wrapping languages
Definition at line 231 of file itkFixedArray.h.
SizeType itk::FixedArray< TValue, VLength >::Size | ( | ) | const |
|
static |
Dimension constant
Definition at line 57 of file itkFixedArray.h.
|
static |
Length constant
Definition at line 54 of file itkFixedArray.h.
|
private |
Internal C array representation.
Definition at line 270 of file itkFixedArray.h.
Referenced by itk::FixedArray< NeighborhoodType, itkGetStaticConstMacro(ImageDimension) >::GetDataPointer(), itk::FixedArray< NeighborhoodType, itkGetStaticConstMacro(ImageDimension) >::GetElement(), itk::FixedArray< NeighborhoodType, itkGetStaticConstMacro(ImageDimension) >::operator=(), itk::FixedArray< NeighborhoodType, itkGetStaticConstMacro(ImageDimension) >::operator[](), and itk::FixedArray< NeighborhoodType, itkGetStaticConstMacro(ImageDimension) >::SetElement().