18#ifndef itkImportImageContainer_h
19#define itkImportImageContainer_h
44template <
typename TElementIdentifier,
typename TElement>
80 SetImportPointer(TElement * ptr, TElementIdentifier num,
bool LetContainerManageMemory =
false);
158 itkSetMacro(ContainerManageMemory,
bool);
159 itkGetConstMacro(ContainerManageMemory,
bool);
160 itkBooleanMacro(ContainerManageMemory);
189 itkSetMacro(
Size, TElementIdentifier);
217#ifndef ITK_MANUAL_INSTANTIATION
218# include "itkImportImageContainer.hxx"
TElement & operator[](const ElementIdentifier id)
void Reserve(ElementIdentifier size, const bool UseValueInitialization=false)
ElementIdentifier Size() const
TElement * GetImportPointer()
const TElement & operator[](const ElementIdentifier id) const
void SetImportPointer(TElement *ptr, TElementIdentifier num, bool LetContainerManageMemory=false)
ImportImageContainer Self
virtual TElement * AllocateElements(ElementIdentifier size, bool UseValueInitialization=false) const
ImportImageContainer()=default
virtual void DeallocateManagedMemory()
~ImportImageContainer() override
ElementIdentifier Capacity() const
SmartPointer< Self > Pointer
bool m_ContainerManageMemory
SizeValueType ElementIdentifier
void SetImportPointer(TElement *ptr)
SmartPointer< const Self > ConstPointer
void PrintSelf(std::ostream &os, Indent indent) const override
PixelType * m_ImportPointer
TElement * GetBufferPointer()
Control indentation during Print() invocation.
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....