ITK
5.2.0
Insight Toolkit
|
#include <itkVectorContainer.h>
Classes | |
class | ConstIterator |
class | Iterator |
Public Types | |
using | ConstPointer = SmartPointer< const Self > |
using | Element = TElement |
using | ElementIdentifier = TElementIdentifier |
using | Pointer = SmartPointer< Self > |
using | Self = VectorContainer |
using | Superclass = Object |
Public Types inherited from itk::Object | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = Object |
using | Superclass = LightObject |
Public Types inherited from itk::LightObject | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = LightObject |
Additional Inherited Members | |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *) |
unsigned long | AddObserver (const EventObject &event, Command *) const |
unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary () |
const MetaDataDictionary & | GetMetaDataDictionary () const |
virtual ModifiedTimeType | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
void | Register () const override |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) |
void | SetDebug (bool debugFlag) const |
void | SetReferenceCount (int) override |
void | UnRegister () const noexcept override |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
Public Member Functions inherited from itk::LightObject | |
Pointer | Clone () const |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
void | Print (std::ostream &os, Indent indent=0) const |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Protected Member Functions inherited from itk::Object | |
Object () | |
~Object () override | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount |
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.
TElementIdentifier | An INTEGRAL type for use in indexing the vector. |
TElement | The element type stored in the container. |
Definition at line 48 of file itkVectorContainer.h.
using itk::VectorContainer< TElementIdentifier, TElement >::ConstPointer = SmartPointer<const Self> |
Definition at line 57 of file itkVectorContainer.h.
using itk::VectorContainer< TElementIdentifier, TElement >::Element = TElement |
Definition at line 61 of file itkVectorContainer.h.
using itk::VectorContainer< TElementIdentifier, TElement >::ElementIdentifier = TElementIdentifier |
Save the template parameters.
Definition at line 60 of file itkVectorContainer.h.
using itk::VectorContainer< TElementIdentifier, TElement >::Pointer = SmartPointer<Self> |
Definition at line 56 of file itkVectorContainer.h.
using itk::VectorContainer< TElementIdentifier, TElement >::Self = VectorContainer |
Standard class type aliases.
Definition at line 54 of file itkVectorContainer.h.
|
private |
Definition at line 66 of file itkVectorContainer.h.
using itk::VectorContainer< TElementIdentifier, TElement >::STLContainerType = VectorType |
This type is provided to Adapt this container as an STL container
Definition at line 99 of file itkVectorContainer.h.
using itk::VectorContainer< TElementIdentifier, TElement >::Superclass = Object |
Definition at line 55 of file itkVectorContainer.h.
|
private |
Definition at line 68 of file itkVectorContainer.h.
|
private |
Definition at line 67 of file itkVectorContainer.h.
|
private |
Quick access to the STL vector type that was inherited.
Definition at line 65 of file itkVectorContainer.h.
|
inlineprotected |
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 74 of file itkVectorContainer.h.
|
inlineprotected |
This type is provided to Adapt this container as an STL container
Definition at line 78 of file itkVectorContainer.h.
|
inlineprotected |
This type is provided to Adapt this container as an STL container
Definition at line 82 of file itkVectorContainer.h.
|
inlineprotected |
This type is provided to Adapt this container as an STL container
Definition at line 86 of file itkVectorContainer.h.
|
inlineprotected |
This type is provided to Adapt this container as an STL container
Definition at line 91 of file itkVectorContainer.h.
Iterator itk::VectorContainer< TElementIdentifier, TElement >::Begin | ( | ) |
Get a begin iterator for the vector.
ConstIterator itk::VectorContainer< TElementIdentifier, TElement >::Begin | ( | ) | const |
Get a begin const iterator for the vector.
|
inlinenoexcept |
Cast the container to a const STL container type
Definition at line 120 of file itkVectorContainer.h.
|
inlinenoexcept |
Cast the container to a STL container type
Definition at line 113 of file itkVectorContainer.h.
|
virtual |
This type is provided to Adapt this container as an STL container
Reimplemented from itk::Object.
reference itk::VectorContainer< TElementIdentifier, TElement >::CreateElementAt | ( | ElementIdentifier | ) |
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.
void itk::VectorContainer< TElementIdentifier, TElement >::CreateIndex | ( | ElementIdentifier | ) |
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.
void itk::VectorContainer< TElementIdentifier, TElement >::DeleteIndex | ( | ElementIdentifier | ) |
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.
reference itk::VectorContainer< TElementIdentifier, TElement >::ElementAt | ( | ElementIdentifier | ) |
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.
const_reference itk::VectorContainer< TElementIdentifier, TElement >::ElementAt | ( | ElementIdentifier | ) | const |
Get a reference to the element at the given index. It is assumed that the index exists, and it will not automatically be created.
Iterator itk::VectorContainer< TElementIdentifier, TElement >::End | ( | ) |
Get an end iterator for the vector.
ConstIterator itk::VectorContainer< TElementIdentifier, TElement >::End | ( | ) | const |
Get an end const iterator for the vector.
Element itk::VectorContainer< TElementIdentifier, TElement >::GetElement | ( | ElementIdentifier | ) | const |
Read the element from the given index. It is assumed that the index exists.
bool itk::VectorContainer< TElementIdentifier, TElement >::GetElementIfIndexExists | ( | ElementIdentifier | , |
Element * | |||
) | const |
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.
|
virtual |
Standard part of every itk Object.
Reimplemented from itk::Object.
Reimplemented in itk::PriorityQueueContainer< TElementWrapper, TElementWrapperInterface, TElementPriority, TElementIdentifier >.
bool itk::VectorContainer< TElementIdentifier, TElement >::IndexExists | ( | ElementIdentifier | ) | const |
Check if the index range of the vector is large enough to allow the given index without expansion.
void itk::VectorContainer< TElementIdentifier, TElement >::Initialize | ( | ) |
Clear the elements. The final size will be zero.
void itk::VectorContainer< TElementIdentifier, TElement >::InsertElement | ( | ElementIdentifier | , |
Element | |||
) |
Set the element value at the given index. If the element location does not exist, it will be created with a default element value.
|
static |
Method for creation through the object factory.
void itk::VectorContainer< TElementIdentifier, TElement >::Reserve | ( | ElementIdentifier | ) |
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.
void itk::VectorContainer< TElementIdentifier, TElement >::SetElement | ( | ElementIdentifier | , |
Element | |||
) |
Set the element value at the given index. It is assumed that the index exists.
ElementIdentifier itk::VectorContainer< TElementIdentifier, TElement >::Size | ( | ) | const |
Get the number of elements currently stored in the vector.
void itk::VectorContainer< TElementIdentifier, TElement >::Squeeze | ( | ) |
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.
|
friend |
This type is provided to Adapt this container as an STL container
Definition at line 173 of file itkVectorContainer.h.
|
friend |
Friends to this class.
Definition at line 172 of file itkVectorContainer.h.