18 #ifndef itkNeighborhoodAllocator_h
19 #define itkNeighborhoodAllocator_h
41 template<
typename TPixel >
93 other.m_ElementCount = 0;
94 other.m_Data =
nullptr;
119 other.m_ElementCount = 0;
120 other.m_Data =
nullptr;
166 template<
typename TPixel >
171 o <<
"NeighborhoodAllocator { this = " << &a <<
", begin = "
172 <<
static_cast< const void *
>( a.
begin() )
173 <<
", size=" << a.
size()
180 template<
typename TPixel >
185 const unsigned int size = lhs.
size();
186 return (size == rhs.
size()) &&
187 ((size == 0) || std::equal(lhs.
begin(), lhs.
end(), rhs.
begin()));
191 template<
typename TPixel >
196 return ! (lhs == rhs);
NeighborhoodAllocator(Self &&other) noexcept
bool operator==(const Index< VDimension > &one, const Index< VDimension > &two)
const TPixel & operator[](unsigned int i) const
void set_size(unsigned int n)
unsigned int size() const
std::ostream & operator<<(std::ostream &os, const Array< TValue > &arr)
const_iterator begin() const
A memory allocator for use as the default allocator type in Neighborhood.
const_iterator end() const
Self & operator=(const Self &other)
const InputImagePixelType * const_iterator
NeighborhoodAllocator(const Self &other)
bool operator!=(const Index< VDimension > &one, const Index< VDimension > &two)
Self & operator=(Self &&other) noexcept
TPixel & operator[](unsigned int i)
InputImagePixelType * iterator
void Allocate(unsigned int n)
unsigned int m_ElementCount