18#ifndef itkFixedArray_h
19#define itkFixedArray_h
52template <
typename TValue,
unsigned int VLength = 3>
57 static constexpr unsigned int Length = VLength;
74 class ConstReverseIterator;
227 explicit FixedArray(
const std::array<ValueType, VLength> & stdArray)
233 template <
typename TFixedArrayValueType>
240 element =
static_cast<TValue
>(*input++);
244 template <
typename TScalarValue>
256 template <
typename TFixedArrayValueType>
264 element =
static_cast<TValue
>(*input++);
285 ITK_GCC_SUPPRESS_Warray_bounds
291 constexpr const_reference
354 itkLegacyMacro(ReverseIterator
rBegin();)
357 itkLegacyMacro(ConstReverseIterator
rBegin()
const;)
360 itkLegacyMacro(ReverseIterator
rEnd();)
363 itkLegacyMacro(ConstReverseIterator
rEnd()
const;)
377 constexpr const_iterator
383 constexpr const_iterator
395 constexpr const_iterator
407 const_reverse_iterator
413 const_reverse_iterator
425 const_reverse_iterator
431 const_reverse_iterator
434 return this->
crend();
471template <
typename TValue,
unsigned int VLength>
476template <
typename TValue,
unsigned int VLength>
485#ifndef ITK_MANUAL_INSTANTIATION
486# include "itkFixedArray.hxx"
A const reverse iterator through an array.
ConstReverseIterator operator--(int)
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(ConstReverseIterator)
ConstReverseIterator(ConstIterator i)
ConstReverseIterator operator--()
ConstReverseIterator operator++()
const ValueType & operator*() const
ConstReverseIterator(const ReverseIterator &rit)
ConstIterator operator->() const
ConstReverseIterator operator++(int)
bool operator==(const ConstReverseIterator &rit) const
A reverse iterator through an array.
bool operator==(const ReverseIterator &rit) const
ReverseIterator operator--()
ReverseIterator operator++()
ReverseIterator operator--(int)
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(ReverseIterator)
ReverseIterator(Iterator i)
friend class ConstReverseIterator
Iterator operator->() const
ValueType & operator*() const
ReverseIterator operator++(int)
Simulate a standard C array with copy semantics.
ConstIterator End() const
bool operator==(const FixedArray &r) const
constexpr SizeType size() const
void swap(FixedArray &other) noexcept
const ValueType * const_iterator
CoordinateType value_type
std::reverse_iterator< iterator > reverse_iterator
constexpr const_reference operator[](unsigned int index) const
const_reverse_iterator crend() const
FixedArray(const ValueType r[VLength])
const ValueType * GetDataPointer() const
constexpr iterator begin() noexcept
FixedArray(const ValueType &)
constexpr const_iterator cbegin() const noexcept
const ValueType * data() const
ValueType * GetDataPointer()
FixedArray(const std::array< ValueType, VLength > &stdArray)
const ValueType * ConstIterator
ValueType[VLength] CArray
const_reverse_iterator crbegin() const
constexpr iterator end() noexcept
reverse_iterator rbegin()
FixedArray(const TScalarValue *r)
static constexpr FixedArray Filled(const ValueType &value)
const_reverse_iterator rend() const
ConstReverseIterator rBegin() const
const_reference GetElement(unsigned int index) const
constexpr const_iterator cend() const noexcept
static constexpr unsigned int Dimension
FixedArray & operator=(const FixedArray< TFixedArrayValueType, VLength > &r)
std::reverse_iterator< const_iterator > const_reverse_iterator
ConstReverseIterator rEnd() const
const ValueType & const_reference
FixedArray & operator=(const ValueType r[VLength])
static constexpr unsigned int Length
constexpr const_iterator begin() const noexcept
ITK_GCC_PRAGMA_PUSH ITK_GCC_SUPPRESS_Warray_bounds constexpr reference operator[](unsigned int index)
constexpr const_iterator end() const noexcept
ConstIterator Begin() const
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(FixedArray)
const ValueType * const_pointer
const_reverse_iterator rbegin() const
FixedArray(const FixedArray< TFixedArrayValueType, VLength > &r)
ITK_GCC_PRAGMA_POP void SetElement(unsigned int index, const_reference value)
void Fill(const ValueType &)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
constexpr TContainer MakeFilled(typename TContainer::const_reference value)
void swap(Array< T > &a, Array< T > &b) noexcept
ITKCommon_EXPORT std::ostream & operator<<(std::ostream &out, typename AnatomicalOrientation::CoordinateEnum value)