#include <itkFixedArray.h>
template<typename TValue, unsigned int VLength = 3>
class itk::FixedArray< TValue, VLength >
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.
- Template Parameters
-
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<>.
- ITK Sphinx Examples:
-
- Examples
- Examples/Statistics/ImageToListSampleAdaptor.cxx, Examples/Statistics/PointSetToAdaptor.cxx, Examples/Statistics/ScalarImageMarkovRandomField1.cxx, SphinxExamples/src/Core/Common/CreateAFixedArray/Code.cxx, SphinxExamples/src/Core/Transform/ScaleAnImage/Code.cxx, SphinxExamples/src/Filtering/ImageGrid/Create3DVolume/Code.cxx, SphinxExamples/src/Filtering/ImageGrid/Stack2DImagesInto3DImage/Code.cxx, SphinxExamples/src/Filtering/ImageGrid/TileImagesSideBySide/Code.cxx, and SphinxExamples/src/Numerics/Statistics/CreateListOfSamplesFromImageWithoutDuplication/Code.cxx.
Definition at line 53 of file itkFixedArray.h.
|
static constexpr unsigned int | Dimension = VLength |
|
static constexpr unsigned int | Length = VLength |
|
◆ CArray
template<typename TValue, unsigned int VLength = 3>
◆ const_iterator
template<typename TValue, unsigned int VLength = 3>
◆ const_pointer
template<typename TValue, unsigned int VLength = 3>
◆ const_reference
template<typename TValue, unsigned int VLength = 3>
◆ const_reverse_iterator
template<typename TValue, unsigned int VLength = 3>
◆ ConstIterator
template<typename TValue, unsigned int VLength = 3>
◆ Iterator
template<typename TValue, unsigned int VLength = 3>
◆ iterator
template<typename TValue, unsigned int VLength = 3>
◆ pointer
template<typename TValue, unsigned int VLength = 3>
◆ reference
template<typename TValue, unsigned int VLength = 3>
◆ reverse_iterator
template<typename TValue, unsigned int VLength = 3>
◆ SizeType
template<typename TValue, unsigned int VLength = 3>
◆ ValueType
template<typename TValue, unsigned int VLength = 3>
◆ FixedArray() [1/6]
template<typename TValue, unsigned int VLength = 3>
Default-constructor.
- Note
- The other five "special member functions" are defaulted implicitly, following the C++ "Rule of Zero".
◆ FixedArray() [2/6]
template<typename TValue, unsigned int VLength = 3>
Conversion constructors.
Constructor assumes input points to array of correct size.
Values are copied individually instead of with a binary copy. This
allows the ValueType's assignment operator to be executed.
◆ FixedArray() [3/6]
template<typename TValue, unsigned int VLength = 3>
Conversion constructors.
Constructor assumes input points to array of correct size.
Values are copied individually instead of with a binary copy. This
allows the ValueType's assignment operator to be executed.
◆ FixedArray() [4/6]
template<typename TValue, unsigned int VLength = 3>
◆ FixedArray() [5/6]
template<typename TValue, unsigned int VLength = 3>
template<typename TFixedArrayValueType >
Constructor to initialize a fixed array from another of any data type
Definition at line 215 of file itkFixedArray.h.
◆ FixedArray() [6/6]
template<typename TValue, unsigned int VLength = 3>
template<typename TScalarValue >
◆ Begin() [1/2]
template<typename TValue, unsigned int VLength = 3>
◆ Begin() [2/2]
template<typename TValue, unsigned int VLength = 3>
Get a ConstIterator for the beginning of the FixedArray.
◆ begin() [1/2]
template<typename TValue, unsigned int VLength = 3>
◆ begin() [2/2]
template<typename TValue, unsigned int VLength = 3>
◆ cbegin()
template<typename TValue, unsigned int VLength = 3>
◆ cend()
template<typename TValue, unsigned int VLength = 3>
◆ crbegin()
template<typename TValue, unsigned int VLength = 3>
◆ crend()
template<typename TValue, unsigned int VLength = 3>
◆ data() [1/2]
template<typename TValue, unsigned int VLength = 3>
◆ data() [2/2]
template<typename TValue, unsigned int VLength = 3>
◆ End() [1/2]
template<typename TValue, unsigned int VLength = 3>
◆ End() [2/2]
template<typename TValue, unsigned int VLength = 3>
Get a ConstIterator for the end of the FixedArray.
◆ end() [1/2]
template<typename TValue, unsigned int VLength = 3>
◆ end() [2/2]
template<typename TValue, unsigned int VLength = 3>
◆ Fill()
template<typename TValue, unsigned int VLength = 3>
◆ Filled()
template<typename TValue, unsigned int VLength = 3>
◆ GetDataPointer() [1/2]
template<typename TValue, unsigned int VLength = 3>
◆ GetDataPointer() [2/2]
template<typename TValue, unsigned int VLength = 3>
◆ GetElement()
template<typename TValue, unsigned int VLength = 3>
Set/Get element methods are more convenient in wrapping languages
Definition at line 279 of file itkFixedArray.h.
◆ ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION()
template<typename TValue, unsigned int VLength = 3>
◆ itkLegacyMacro() [1/2]
template<typename TValue, unsigned int VLength = 3>
◆ itkLegacyMacro() [2/2]
template<typename TValue, unsigned int VLength = 3>
◆ operator=() [1/2]
template<typename TValue, unsigned int VLength = 3>
template<typename TFixedArrayValueType >
Operator= defined for a variety of types.
The assignment operator assumes input points to array of correct size. Values are copied individually instead of with a binary copy. This allows the ValueType's assignment operator to be executed.
Definition at line 239 of file itkFixedArray.h.
◆ operator=() [2/2]
template<typename TValue, unsigned int VLength = 3>
◆ operator==()
template<typename TValue, unsigned int VLength = 3>
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.
◆ operator[]() [1/2]
template<typename TValue, unsigned int VLength = 3>
ITK_GCC_PRAGMA_PUSH constexpr ITK_GCC_SUPPRESS_Warray_bounds reference itk::FixedArray< TValue, VLength >::operator[] |
( |
unsigned int |
index | ) |
|
|
inlineconstexpr |
◆ operator[]() [2/2]
template<typename TValue, unsigned int VLength = 3>
◆ rbegin() [1/2]
template<typename TValue, unsigned int VLength = 3>
◆ rbegin() [2/2]
template<typename TValue, unsigned int VLength = 3>
◆ rend() [1/2]
template<typename TValue, unsigned int VLength = 3>
◆ rend() [2/2]
template<typename TValue, unsigned int VLength = 3>
◆ SetElement()
template<typename TValue, unsigned int VLength = 3>
Set/Get element methods are more convenient in wrapping languages
Definition at line 274 of file itkFixedArray.h.
◆ Size()
template<typename TValue, unsigned int VLength = 3>
◆ size()
template<typename TValue, unsigned int VLength = 3>
◆ swap()
template<typename TValue, unsigned int VLength = 3>
◆ Dimension
template<typename TValue, unsigned int VLength = 3>
constexpr unsigned int itk::FixedArray< TValue, VLength >::Dimension = VLength |
|
staticconstexpr |
◆ Length
template<typename TValue, unsigned int VLength = 3>
constexpr unsigned int itk::FixedArray< TValue, VLength >::Length = VLength |
|
staticconstexpr |
◆ m_InternalArray
template<typename TValue, unsigned int VLength = 3>
The documentation for this class was generated from the following file: