#include <itkVectorContainer.h>
template<typename TElementIdentifier, typename TElement>
class itk::detail::VectorContainer< TElementIdentifier, TElement >
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
This is a full-fledged Object, so there is modification time, debug, and reference count information.
- Template Parameters
-
TElementIdentifier | An INTEGRAL type for use in indexing the vector. |
TElement | The element type stored in the container. |
- ITK Sphinx Examples:
-
- Examples
- Examples/Numerics/FourierDescriptors1.cxx, and SphinxExamples/src/Core/Common/IterateOnAVectorContainer/Code.cxx.
Definition at line 51 of file itkVectorContainer.h.
◆ ConstPointer
template<typename TElementIdentifier , typename TElement >
◆ Element
template<typename TElementIdentifier , typename TElement >
◆ ElementIdentifier
template<typename TElementIdentifier , typename TElement >
◆ Pointer
template<typename TElementIdentifier , typename TElement >
◆ Self
template<typename TElementIdentifier , typename TElement >
◆ STLContainerType
template<typename TElementIdentifier , typename TElement >
This type is provided to Adapt this container as an STL container
Definition at line 74 of file itkVectorContainer.h.
◆ Superclass
template<typename TElementIdentifier , typename TElement >
◆ VectorConstIterator
template<typename TElementIdentifier , typename TElement >
◆ VectorIterator
template<typename TElementIdentifier , typename TElement >
◆ VectorType
template<typename TElementIdentifier , typename TElement >
◆ VectorContainer() [1/5]
template<typename TElementIdentifier , typename TElement >
Provide pass-through constructors corresponding to all the STL vector constructors. These are for internal use only since this is also an Object which must be constructed through the "New()" routine.
◆ VectorContainer() [2/5]
template<typename TElementIdentifier , typename TElement >
Provide pass-through constructors corresponding to all the STL vector constructors. These are for internal use only since this is also an Object which must be constructed through the "New()" routine.
Definition at line 550 of file itkVectorContainer.h.
◆ VectorContainer() [3/5]
template<typename TElementIdentifier , typename TElement >
Provide pass-through constructors corresponding to all the STL vector constructors. These are for internal use only since this is also an Object which must be constructed through the "New()" routine.
Definition at line 554 of file itkVectorContainer.h.
◆ VectorContainer() [4/5]
template<typename TElementIdentifier , typename TElement >
Provide pass-through constructors corresponding to all the STL vector constructors. These are for internal use only since this is also an Object which must be constructed through the "New()" routine.
Definition at line 558 of file itkVectorContainer.h.
◆ VectorContainer() [5/5]
template<typename TElementIdentifier , typename TElement >
template<typename TInputIterator >
Provide pass-through constructors corresponding to all the STL vector constructors. These are for internal use only since this is also an Object which must be constructed through the "New()" routine.
Definition at line 563 of file itkVectorContainer.h.
◆ Begin() [1/2]
template<typename TElementIdentifier , typename TElement >
Get a begin iterator for the vector.
◆ Begin() [2/2]
template<typename TElementIdentifier , typename TElement >
Get a begin const iterator for the vector.
◆ CastToSTLConstContainer()
template<typename TElementIdentifier , typename TElement >
◆ CastToSTLContainer()
template<typename TElementIdentifier , typename TElement >
◆ CreateElementAt()
template<typename TElementIdentifier , typename TElement >
Get a reference to the element at the given index. If the element location does not exist, it will be created with a default element value.
It is assumed that the value of the element is modified through the reference.
◆ CreateIndex()
template<typename TElementIdentifier , typename TElement >
Make sure that the index range of the vector is large enough to allow the given index, expanding it if necessary. The index will contain the default element regardless of whether expansion occurred.
◆ DeleteIndex()
template<typename TElementIdentifier , typename TElement >
Delete the element defined by the index identifier. In practice, it doesn't make sense to delete a vector index; overwrite the index with the default element instead.
◆ ElementAt() [1/2]
template<typename TElementIdentifier , typename TElement >
Get a reference to the element at the given index. It is assumed that the index exists, and it will not automatically be created.
It is assumed that the value of the element is modified through the reference.
◆ ElementAt() [2/2]
template<typename TElementIdentifier , typename TElement >
Get a reference to the element at the given index. It is assumed that the index exists, and it will not automatically be created.
◆ End() [1/2]
template<typename TElementIdentifier , typename TElement >
Get an end iterator for the vector.
◆ End() [2/2]
template<typename TElementIdentifier , typename TElement >
Get an end const iterator for the vector.
◆ GetElement()
template<typename TElementIdentifier , typename TElement >
Read the element from the given index. It is assumed that the index exists.
◆ GetElementIfIndexExists()
template<typename TElementIdentifier , typename TElement >
Check if the given index is in range of the vector. If it is not, return false. Otherwise, set the element through the pointer (if it isn't nullptr), and return true.
◆ GetNameOfClass()
template<typename TElementIdentifier , typename TElement >
◆ IndexExists()
template<typename TElementIdentifier , typename TElement >
Check if the index range of the vector is large enough to allow the given index without expansion.
◆ Initialize()
template<typename TElementIdentifier , typename TElement >
Clear the elements. The final size will be zero.
◆ InsertElement()
template<typename TElementIdentifier , typename TElement >
Set the element value at the given index. If the element location does not exist, it will be created with a default element value.
◆ New()
template<typename TElementIdentifier , typename TElement >
◆ Reserve()
template<typename TElementIdentifier , typename TElement >
Allocate memory for at the requested number of elements.
Tell the container to allocate enough memory to allow at least as many elements as the size given to be stored. In the generic case of ITK containers this is NOT guaranteed to actually allocate any memory, but it is useful if the implementation of the container allocates contiguous storage. In the particular implementation of this VectorContainer the call to this method actually allocates memory for the number of elements defined by ElementIdentifier.
◆ SetElement()
template<typename TElementIdentifier , typename TElement >
Set the element value at the given index. It is assumed that the index exists.
◆ Size()
template<typename TElementIdentifier , typename TElement >
Get the number of elements currently stored in the vector.
◆ Squeeze()
template<typename TElementIdentifier , typename TElement >
Try to compact the internal representation of the memory.
Tell the container to try to minimize its memory usage for storage of the current number of elements. This is NOT guaranteed to decrease memory usage. This method is included here mainly for providing a unified API with other containers in the toolkit.
◆ ConstIterator
template<typename TElementIdentifier , typename TElement >
◆ Iterator
template<typename TElementIdentifier , typename TElement >
The documentation for this class was generated from the following file: