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 UseDefaultConstructor =
false);
150 itkSetMacro(ContainerManageMemory,
bool);
151 itkGetConstMacro(ContainerManageMemory,
bool);
152 itkBooleanMacro(ContainerManageMemory);
163 PrintSelf(std::ostream & os,
Indent indent)
const override;
171 AllocateElements(ElementIdentifier size,
bool UseDefaultConstructor =
false)
const;
174 DeallocateManagedMemory();
182 itkSetMacro(
Size, TElementIdentifier);
190 itkSetMacro(Capacity, TElementIdentifier);
199 m_ImportPointer = ptr;
210 #ifndef ITK_MANUAL_INSTANTIATION
211 # include "itkImportImageContainer.hxx"