18 #ifndef __itkImportImageContainer_h
19 #define __itkImportImageContainer_h
44 template<
typename TElementIdentifier,
typename TElement >
74 bool LetContainerManageMemory =
false);
134 itkSetMacro(ContainerManageMemory,
bool);
135 itkGetConstMacro(ContainerManageMemory,
bool);
136 itkBooleanMacro(ContainerManageMemory);
146 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
163 itkSetMacro(
Size, TElementIdentifier);
171 itkSetMacro(
Capacity, TElementIdentifier);
190 #ifndef ITK_MANUAL_INSTANTIATION
191 #include "itkImportImageContainer.hxx"
TElement & operator[](const ElementIdentifier id)
virtual void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
TElement * m_ImportPointer
ImportImageContainer Self
void SetImportPointer(TElement *ptr, TElementIdentifier num, bool LetContainerManageMemory=false)
SmartPointer< const Self > ConstPointer
Represent the size (bounds) of a n-dimensional image.
ElementIdentifier Capacity(void) const
void SetImportPointer(TElement *ptr)
const TElement & operator[](const ElementIdentifier id) const
TElementIdentifier m_Capacity
void operator=(const Self &)
virtual TElement * AllocateElements(ElementIdentifier size, bool UseDefaultConstructor=false) const
SmartPointer< Self > Pointer
TElement * GetImportPointer()
TElementIdentifier m_Size
void Reserve(ElementIdentifier num, const bool UseDefaultConstructor=false)
ElementIdentifier Size(void) const
virtual void DeallocateManagedMemory()
TElement * GetBufferPointer()
virtual ~ImportImageContainer()
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