|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkNeighborhoodAllocator_h
19 #define itkNeighborhoodAllocator_h
42 template <
typename TPixel>
66 m_Data.reset(
new TPixel[n]);
92 ,
m_Data{ std::move(other.m_Data) }
94 other.m_ElementCount = 0;
120 m_Data = std::move(other.m_Data);
121 other.m_ElementCount = 0;
168 m_Data.reset(
new TPixel[n]);
191 template <
typename TPixel>
192 inline std::ostream &
195 o <<
"NeighborhoodAllocator { this = " << &a <<
", begin = " << static_cast<const void *>(a.
begin())
196 <<
", size=" << a.
size() <<
" }";
202 template <
typename TPixel>
206 const unsigned int size = lhs.
size();
207 return (size == rhs.
size()) && ((size == 0) || std::equal(lhs.
begin(), lhs.
end(), rhs.
begin()));
211 template <
typename TPixel>
215 return !(lhs == rhs);
TPixel & operator[](unsigned int i)
void Allocate(unsigned int n)
unsigned int m_ElementCount
std::ostream & operator<<(std::ostream &os, const Array< TValue > &arr)
NeighborhoodAllocator(Self &&other) noexcept
void set_size(unsigned int n)
const TPixel * data() const noexcept
std::unique_ptr< TPixel[]> m_Data
NeighborhoodAllocator Self
const_iterator begin() const
unsigned int size() const
Self & operator=(const Self &other)
Self & operator=(Self &&other) noexcept
bool operator==(const Index< VDimension > &one, const Index< VDimension > &two)
const ImageType ::InternalPixelType * * const_iterator
bool operator!=(const Index< VDimension > &one, const Index< VDimension > &two)
NeighborhoodAllocator()=default
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
const TPixel & operator[](unsigned int i) const
const_iterator end() const
NeighborhoodAllocator(const Self &other)
~NeighborhoodAllocator()=default
ImageType ::InternalPixelType * * iterator
A memory allocator for use as the default allocator type in Neighborhood.