18 #ifndef itkImportImageContainer_h
19 #define itkImportImageContainer_h
44 template<
typename TElementIdentifier,
typename TElement >
73 void SetImportPointer(TElement *ptr, TElementIdentifier num,
74 bool LetContainerManageMemory =
false);
78 {
return m_ImportPointer[id]; }
82 {
return m_ImportPointer[id]; }
87 {
return m_ImportPointer; }
91 {
return m_Capacity; }
112 void Reserve(ElementIdentifier num,
const bool UseDefaultConstructor =
false);
134 itkSetMacro(ContainerManageMemory,
bool);
135 itkGetConstMacro(ContainerManageMemory,
bool);
136 itkBooleanMacro(ContainerManageMemory);
146 virtual
void PrintSelf(std::ostream & os,
Indent indent) const ITK_OVERRIDE;
153 virtual TElement * AllocateElements(ElementIdentifier size,
bool UseDefaultConstructor = false) const;
155 virtual
void DeallocateManagedMemory();
163 itkSetMacro(
Size, TElementIdentifier);
171 itkSetMacro(Capacity, TElementIdentifier);
177 void SetImportPointer(TElement *ptr){ m_ImportPointer = ptr; }
189 #ifndef ITK_MANUAL_INSTANTIATION
190 #include "itkImportImageContainer.hxx"
TElement & operator[](const ElementIdentifier id)
TElement * m_ImportPointer
ImportImageContainer Self
SmartPointer< const Self > ConstPointer
Represent the size (bounds) of a n-dimensional image.
ElementIdentifier Capacity(void) const
const TElement & operator[](const ElementIdentifier id) const
TElementIdentifier m_Capacity
SmartPointer< Self > Pointer
TElement * GetImportPointer()
TElementIdentifier m_Size
ElementIdentifier Size(void) const
TElement * GetBufferPointer()
Control indentation during Print() invocation.
bool m_ContainerManageMemory
Base class for most ITK classes.
Defines an itk::Image front-end to a standard C-array.
TElementIdentifier ElementIdentifier