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);
93 return m_ImportPointer;
126 Reserve(ElementIdentifier size,
const bool UseValueInitialization =
false);
150 itkSetMacro(ContainerManageMemory,
bool);
151 itkGetConstMacro(ContainerManageMemory,
bool);
152 itkBooleanMacro(ContainerManageMemory);
163 PrintSelf(std::ostream & os,
Indent indent)
const override;
170 AllocateElements(ElementIdentifier size,
bool UseValueInitialization =
false)
const;
173 DeallocateManagedMemory();
181 itkSetMacro(
Size, TElementIdentifier);
189 itkSetMacro(Capacity, TElementIdentifier);
198 m_ImportPointer = ptr;
202 TElement * m_ImportPointer{};
203 TElementIdentifier m_Size{};
204 TElementIdentifier m_Capacity{};
205 bool m_ContainerManageMemory{
true };
209 #ifndef ITK_MANUAL_INSTANTIATION
210 # include "itkImportImageContainer.hxx"