#include <itkVectorContainer.h>
template<typename TElementIdentifier, typename TElement>
class itk::VectorContainer< TElementIdentifier, TElement >
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
This is a full-fleged 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. |
- Wiki Examples:
-
- Examples:
- Examples/Numerics/FourierDescriptors1.cxx, and SphinxExamples/src/Core/Common/IterateOnAVectorContainer/Code.cxx.
Definition at line 51 of file itkVectorContainer.h.
template<typename TElementIdentifier, typename TElement>
template<typename TElementIdentifier, typename TElement>
template<typename TElementIdentifier, typename TElement>
template<typename TElementIdentifier, typename TElement>
template<typename TElementIdentifier, typename TElement>
template<typename TElementIdentifier, typename TElement>
template<typename TElementIdentifier, typename TElement>
This type is provided to Adapt this container as an STL container
Definition at line 93 of file itkVectorContainer.h.
template<typename TElementIdentifier, typename TElement>
template<typename TElementIdentifier, typename TElement>
template<typename TElementIdentifier, typename TElement>
template<typename TElementIdentifier, typename TElement>
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 77 of file itkVectorContainer.h.
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 79 of file itkVectorContainer.h.
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 81 of file itkVectorContainer.h.
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 83 of file itkVectorContainer.h.
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 86 of file itkVectorContainer.h.
template<typename TElementIdentifier, typename TElement>
Get a begin const iterator for the vector.
template<typename TElementIdentifier, typename TElement>
Get a begin iterator for the vector.
template<typename TElementIdentifier, typename TElement>
template<typename TElementIdentifier, typename TElement>
template<typename TElementIdentifier, typename TElement>
virtual::itk::LightObject::Pointer itk::VectorContainer< TElementIdentifier, TElement >::CreateAnother |
( |
| ) |
const |
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
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.
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.
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. Instead, this method just overwrite the index with the default element.
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.
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.
template<typename TElementIdentifier, typename TElement>
Get an end const iterator for the vector.
template<typename TElementIdentifier, typename TElement>
Get an end iterator for the vector.
template<typename TElementIdentifier, typename TElement>
Read the element from the given index. It is assumed that the index exists.
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 ITK_NULLPTR), and return true.
template<typename TElementIdentifier, typename TElement>
template<typename TElementIdentifier, typename TElement>
Check if the index range of the vector is large enough to allow the given index without expansion.
template<typename TElementIdentifier, typename TElement>
Clear the elements. The final size will be zero.
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.
template<typename TElementIdentifier, typename TElement>
template<typename TElementIdentifier, typename TElement>
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.
template<typename TElementIdentifier, typename TElement>
Set the element value at the given index. It is assumed that the index exists.
template<typename TElementIdentifier, typename TElement>
Get the number of elements currently stored in the vector.
template<typename TElementIdentifier, typename TElement>
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.
template<typename TElementIdentifier, typename TElement>
template<typename TElementIdentifier, typename TElement>
The documentation for this class was generated from the following file: