18 #ifndef itkImportImageContainer_h
19 #define itkImportImageContainer_h
44 template <
typename TElementIdentifier,
typename TElement>
70 return m_ImportPointer;
80 SetImportPointer(TElement * ptr, TElementIdentifier num,
bool LetContainerManageMemory =
false);
86 return m_ImportPointer[id];
93 return m_ImportPointer[id];
101 return m_ImportPointer;
134 Reserve(ElementIdentifier size,
const bool UseValueInitialization =
false);
158 itkSetMacro(ContainerManageMemory,
bool);
159 itkGetConstMacro(ContainerManageMemory,
bool);
160 itkBooleanMacro(ContainerManageMemory);
171 PrintSelf(std::ostream & os,
Indent indent)
const override;
178 AllocateElements(ElementIdentifier size,
bool UseValueInitialization =
false)
const;
181 DeallocateManagedMemory();
189 itkSetMacro(
Size, TElementIdentifier);
197 itkSetMacro(Capacity, TElementIdentifier);
206 m_ImportPointer = ptr;
210 TElement * m_ImportPointer{};
211 TElementIdentifier m_Size{};
212 TElementIdentifier m_Capacity{};
213 bool m_ContainerManageMemory{
true };
217 #ifndef ITK_MANUAL_INSTANTIATION
218 # include "itkImportImageContainer.hxx"