ITK
5.2.0
Insight Toolkit
|
#include <itkFixedArray.h>
Classes | |
class | ConstReverseIterator |
class | ReverseIterator |
Public Types | |
using | CArray = ValueType[VLength] |
using | const_iterator = const ValueType * |
using | const_pointer = const ValueType * |
using | const_reference = const ValueType & |
using | const_reverse_iterator = std::reverse_iterator< const_iterator > |
using | ConstIterator = const ValueType * |
using | Iterator = ValueType * |
using | iterator = ValueType * |
using | pointer = ValueType * |
using | reference = ValueType & |
using | reverse_iterator = std::reverse_iterator< iterator > |
using | SizeType = unsigned int |
using | ValueType = TValue |
Static Public Attributes | |
static constexpr unsigned int | Dimension = VLength |
static constexpr unsigned int | Length = VLength |
CArray | m_InternalArray |
FixedArray ()=default | |
FixedArray (const FixedArray &)=default | |
FixedArray & | operator= (const FixedArray &)=default |
FixedArray (FixedArray &&)=default | |
FixedArray & | operator= (FixedArray &&)=default |
~FixedArray ()=default | |
FixedArray (const ValueType r[VLength]) | |
FixedArray (const ValueType &) | |
FixedArray (const std::array< ValueType, VLength > &stdArray) | |
template<typename TFixedArrayValueType > | |
FixedArray (const FixedArray< TFixedArrayValueType, VLength > &r) | |
template<typename TScalarValue > | |
FixedArray (const TScalarValue *r) | |
template<typename TFixedArrayValueType > | |
FixedArray & | operator= (const FixedArray< TFixedArrayValueType, VLength > &r) |
FixedArray & | operator= (const ValueType r[VLength]) |
bool | operator== (const FixedArray &r) const |
bool | operator!= (const FixedArray &r) const |
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 int index, const_reference value) |
const_reference | GetElement (unsigned int index) const |
ValueType * | GetDataPointer () |
const ValueType * | GetDataPointer () const |
ValueType * | data () |
const ValueType * | data () const |
Iterator | Begin () |
ConstIterator | Begin () const |
Iterator | End () |
ConstIterator | End () const |
itkLegacyMacro (ReverseIterator rBegin()) | |
itkLegacyMacro (ConstReverseIterator rBegin() const) | |
itkLegacyMacro (ReverseIterator rEnd()) | |
itkLegacyMacro (ConstReverseIterator rEnd() const) | |
const_iterator | cbegin () const noexcept |
iterator | begin () noexcept |
const_iterator | begin () const noexcept |
const_iterator | cend () const noexcept |
iterator | end () noexcept |
const_iterator | end () const noexcept |
reverse_iterator | rbegin () |
const_reverse_iterator | crbegin () const |
const_reverse_iterator | rbegin () const |
reverse_iterator | rend () |
const_reverse_iterator | crend () const |
const_reverse_iterator | rend () const |
SizeType | Size () const |
constexpr SizeType | size () const |
void | Fill (const ValueType &) |
void | swap (FixedArray &other) |
static FixedArray | Filled (const ValueType &) |
Simulate a standard C array with copy semantics.
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 52 of file itkFixedArray.h.
using itk::FixedArray< TValue, VLength >::CArray = ValueType[VLength] |
A type representing the C-array version of this FixedArray.
Definition at line 65 of file itkFixedArray.h.
using itk::FixedArray< TValue, VLength >::const_iterator = const ValueType * |
using itk::FixedArray< TValue, VLength >::const_pointer = const ValueType * |
A const pointer to the ValueType.
Definition at line 175 of file itkFixedArray.h.
using itk::FixedArray< TValue, VLength >::const_reference = const ValueType & |
A const reference to the ValueType.
Definition at line 181 of file itkFixedArray.h.
using itk::FixedArray< TValue, VLength >::const_reverse_iterator = std::reverse_iterator<const_iterator> |
Definition at line 191 of file itkFixedArray.h.
using itk::FixedArray< TValue, VLength >::ConstIterator = const ValueType * |
A const iterator through the array.
Definition at line 71 of file itkFixedArray.h.
using itk::FixedArray< TValue, VLength >::Iterator = ValueType * |
An iterator through the array.
Definition at line 68 of file itkFixedArray.h.
using itk::FixedArray< TValue, VLength >::iterator = ValueType * |
The return type of the non-const overloads of begin() and end().
Definition at line 184 of file itkFixedArray.h.
using itk::FixedArray< TValue, VLength >::pointer = ValueType * |
A pointer to the ValueType.
Definition at line 172 of file itkFixedArray.h.
using itk::FixedArray< TValue, VLength >::reference = ValueType & |
A reference to the ValueType.
Definition at line 178 of file itkFixedArray.h.
using itk::FixedArray< TValue, VLength >::reverse_iterator = std::reverse_iterator<iterator> |
Definition at line 189 of file itkFixedArray.h.
using itk::FixedArray< TValue, VLength >::SizeType = unsigned int |
Definition at line 193 of file itkFixedArray.h.
using itk::FixedArray< TValue, VLength >::ValueType = TValue |
The element type stored at each location in the FixedArray.
Definition at line 62 of file itkFixedArray.h.
|
default |
Constructors
|
default |
Internal C array representation.
|
default |
Internal C array representation.
|
default |
Internal C array representation.
itk::FixedArray< TValue, VLength >::FixedArray | ( | const ValueType | r[VLength] | ) |
Conversion constructors
itk::FixedArray< TValue, VLength >::FixedArray | ( | const ValueType & | ) |
Internal C array representation.
|
inlineexplicit |
Explicit constructor for std::array.
Definition at line 213 of file itkFixedArray.h.
|
inline |
Constructor to initialize a fixed array from another of any data type
Definition at line 220 of file itkFixedArray.h.
|
inline |
Internal C array representation.
Definition at line 231 of file itkFixedArray.h.
Iterator itk::FixedArray< TValue, VLength >::Begin | ( | ) |
Get various iterators to the array.
Referenced by itk::CopyMeshToMeshPoints().
ConstIterator itk::FixedArray< TValue, VLength >::Begin | ( | ) | const |
Internal C array representation.
|
inlinenoexcept |
Internal C array representation.
Definition at line 370 of file itkFixedArray.h.
|
inlinenoexcept |
Internal C array representation.
Definition at line 364 of file itkFixedArray.h.
|
inlinenoexcept |
Internal C array representation.
Definition at line 358 of file itkFixedArray.h.
Referenced by itk::FixedArray< float, Self::ImageDimension >::FixedArray(), and itk::FixedArray< float, Self::ImageDimension >::operator=().
|
inlinenoexcept |
Internal C array representation.
Definition at line 376 of file itkFixedArray.h.
|
inline |
Internal C array representation.
Definition at line 400 of file itkFixedArray.h.
|
inline |
Internal C array representation.
Definition at line 418 of file itkFixedArray.h.
|
inline |
Internal C array representation.
Definition at line 325 of file itkFixedArray.h.
|
inline |
Internal C array representation.
Definition at line 331 of file itkFixedArray.h.
Iterator itk::FixedArray< TValue, VLength >::End | ( | ) |
Internal C array representation.
ConstIterator itk::FixedArray< TValue, VLength >::End | ( | ) | const |
Internal C array representation.
|
inlinenoexcept |
Internal C array representation.
Definition at line 388 of file itkFixedArray.h.
|
inlinenoexcept |
Internal C array representation.
Definition at line 382 of file itkFixedArray.h.
void itk::FixedArray< TValue, VLength >::Fill | ( | const ValueType & | ) |
Set all the elements of the container to the input value.
Referenced by itk::NumericTraits< FixedArray< T, D > >::SetLength(), itk::DiscreteGaussianDerivativeImageFilter< TInputImage, TOutputImage >::SetMaximumError(), itk::DiscreteGaussianDerivativeImageFilter< TInputImage, TOutputImage >::SetOrder(), itk::DiscreteGaussianDerivativeImageFilter< TInputImage, TOutputImage >::SetVariance(), itk::ShapeLabelObject< TLabel, VImageDimension >::ShapeLabelObject(), and itk::StatisticsLabelObject< TLabel, VImageDimension >::StatisticsLabelObject().
|
static |
Internal C array representation.
|
inline |
Return a pointer to the data.
Definition at line 313 of file itkFixedArray.h.
Referenced by itk::Accessor::RGBToVectorPixelAccessor< TImage::PixelType::ComponentType >::Get(), itk::Accessor::VectorToRGBPixelAccessor< TImage::PixelType::ValueType >::Get(), itk::MetaArrayWriter::SetInput(), itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::SetOutputPixel(), itk::ImageBase< TImage::ImageDimension >::TransformLocalVectorToPhysicalVector(), and itk::ImageBase< TImage::ImageDimension >::TransformPhysicalVectorToLocalVector().
|
inline |
Internal C array representation.
Definition at line 319 of file itkFixedArray.h.
|
inline |
Internal C array representation.
Definition at line 305 of file itkFixedArray.h.
itk::FixedArray< TValue, VLength >::itkLegacyMacro | ( | ConstReverseIterator rBegin() const | ) |
Internal C array representation.
itk::FixedArray< TValue, VLength >::itkLegacyMacro | ( | ConstReverseIterator rEnd() const | ) |
Internal C array representation.
itk::FixedArray< TValue, VLength >::itkLegacyMacro | ( | ReverseIterator | rBegin() | ) |
Internal C array representation.
itk::FixedArray< TValue, VLength >::itkLegacyMacro | ( | ReverseIterator | rEnd() | ) |
Internal C array representation.
|
inline |
Internal C array representation.
Definition at line 260 of file itkFixedArray.h.
|
default |
Internal C array representation.
|
inline |
Operator= defined for a variety of types.
Definition at line 239 of file itkFixedArray.h.
FixedArray& itk::FixedArray< TValue, VLength >::operator= | ( | const ValueType | r[VLength] | ) |
Internal C array representation.
|
default |
Internal C array representation.
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.
|
inline |
Internal C array representation.
Definition at line 272 of file itkFixedArray.h.
|
inline |
Internal C array representation.
Definition at line 273 of file itkFixedArray.h.
|
inline |
Internal C array representation.
Definition at line 288 of file itkFixedArray.h.
|
inline |
Internal C array representation.
Definition at line 289 of file itkFixedArray.h.
|
inline |
Internal C array representation.
Definition at line 292 of file itkFixedArray.h.
|
inline |
Internal C array representation.
Definition at line 293 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 268 of file itkFixedArray.h.
|
inline |
Internal C array representation.
Definition at line 269 of file itkFixedArray.h.
|
inline |
Internal C array representation.
Definition at line 281 of file itkFixedArray.h.
|
inline |
Internal C array representation.
Definition at line 282 of file itkFixedArray.h.
|
inline |
Internal C array representation.
Definition at line 290 of file itkFixedArray.h.
|
inline |
Internal C array representation.
Definition at line 291 of file itkFixedArray.h.
|
inline |
Internal C array representation.
Definition at line 294 of file itkFixedArray.h.
|
inline |
Internal C array representation.
Definition at line 295 of file itkFixedArray.h.
|
inline |
Internal C array representation.
Definition at line 270 of file itkFixedArray.h.
|
inline |
Internal C array representation.
Definition at line 271 of file itkFixedArray.h.
|
inline |
Internal C array representation.
Definition at line 394 of file itkFixedArray.h.
|
inline |
Internal C array representation.
Definition at line 406 of file itkFixedArray.h.
|
inline |
Internal C array representation.
Definition at line 412 of file itkFixedArray.h.
|
inline |
Internal C array representation.
Definition at line 424 of file itkFixedArray.h.
|
inline |
Set/Get element methods are more convenient in wrapping languages
Definition at line 300 of file itkFixedArray.h.
SizeType itk::FixedArray< TValue, VLength >::Size | ( | ) | const |
Size of the container
|
inlineconstexpr |
Internal C array representation.
Definition at line 434 of file itkFixedArray.h.
|
inline |
Internal C array representation.
Definition at line 444 of file itkFixedArray.h.
Referenced by itk::swap().
|
staticconstexpr |
Dimension constant
Definition at line 59 of file itkFixedArray.h.
|
staticconstexpr |
Length constant
Definition at line 56 of file itkFixedArray.h.
Referenced by itk::ShapeLabelObject< TLabel, VImageDimension >::GetOrientedBoundingBoxVertices().
|
private |
Internal C array representation.
Definition at line 451 of file itkFixedArray.h.
Referenced by itk::FixedArray< float, Self::ImageDimension >::swap().