18 #ifndef itkImportImageContainer_h 19 #define itkImportImageContainer_h 44 template<
typename TElementIdentifier,
typename TElement >
74 bool LetContainerManageMemory =
false);
81 const TElement &
operator[](
const ElementIdentifier
id)
const 94 ElementIdentifier
Size(
void)
const 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;
163 itkSetMacro(
Size, TElementIdentifier);
171 itkSetMacro(
Capacity, TElementIdentifier);
181 void operator=(
const Self &) ITK_DELETE_FUNCTION;
190 #ifndef ITK_MANUAL_INSTANTIATION 191 #include "itkImportImageContainer.hxx"
TElement & operator[](const ElementIdentifier id)
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
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
void SetImportPointer(TElement *ptr)
const TElement & operator[](const ElementIdentifier id) const
void operator=(const Self &) ITK_DELETE_FUNCTION
TElementIdentifier m_Capacity
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
virtual void PrintSelf(std::ostream &os, Indent indent) const override