#include <itkNeighborhoodAllocator.h>
The decision to create this allocator with the vnl_vector api (versus using an STL allocator and wrapping the vnl_vector API) was made because the STL allocator API is not guaranteed stable at this time.
Definition at line 35 of file itkNeighborhoodAllocator.h.
Public Types | |
typedef const TPixel * | const_iterator |
typedef TPixel * | iterator |
typedef NeighborhoodAllocator | Self |
Public Member Functions | |
NeighborhoodAllocator () | |
bool | operator!= (const Self &other) const |
bool | operator== (const Self &other) const |
~NeighborhoodAllocator () | |
void | Allocate (unsigned int n) |
const_iterator | begin () const |
iterator | begin () |
const_iterator | end () const |
iterator | end () |
unsigned int | size () const |
void | Deallocate () |
NeighborhoodAllocator (const Self &other) | |
const Self & | operator= (const Self &other) |
TPixel & | operator[] (unsigned int i) |
const TPixel & | operator[] (unsigned int i) const |
void | set_size (unsigned int n) |
Protected Attributes | |
TPixel * | m_Data |
unsigned int | m_ElementCount |
typedef const TPixel* itk::NeighborhoodAllocator< TPixel >::const_iterator |
Definition at line 46 of file itkNeighborhoodAllocator.h.
typedef TPixel* itk::NeighborhoodAllocator< TPixel >::iterator |
Iterator support. Note that the naming of the typedefs is on purpose. itk::Neighborhood makes reference to the allocator, which because it may be vnl or other type, uses the lower case/underscore forms iterator and const_iterator.
Definition at line 45 of file itkNeighborhoodAllocator.h.
typedef NeighborhoodAllocator itk::NeighborhoodAllocator< TPixel >::Self |
Standard class typedefs.
Definition at line 39 of file itkNeighborhoodAllocator.h.
itk::NeighborhoodAllocator< TPixel >::NeighborhoodAllocator | ( | ) | [inline] |
Default constructor
Definition at line 49 of file itkNeighborhoodAllocator.h.
itk::NeighborhoodAllocator< TPixel >::~NeighborhoodAllocator | ( | ) | [inline] |
Default destructor
Definition at line 52 of file itkNeighborhoodAllocator.h.
itk::NeighborhoodAllocator< TPixel >::NeighborhoodAllocator | ( | const Self & | other | ) | [inline] |
Copy constructor.
Definition at line 72 of file itkNeighborhoodAllocator.h.
void itk::NeighborhoodAllocator< TPixel >::Allocate | ( | unsigned int | n | ) | [inline] |
Allocates memory using new()
Definition at line 56 of file itkNeighborhoodAllocator.h.
Referenced by itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::set_size().
const_iterator itk::NeighborhoodAllocator< TPixel >::begin | ( | ) | const [inline] |
STL-style iterator support for the memory buffer.
Definition at line 111 of file itkNeighborhoodAllocator.h.
iterator itk::NeighborhoodAllocator< TPixel >::begin | ( | ) | [inline] |
STL-style iterator support for the memory buffer.
Definition at line 109 of file itkNeighborhoodAllocator.h.
Referenced by itk::operator<<().
void itk::NeighborhoodAllocator< TPixel >::Deallocate | ( | ) | [inline] |
Deallocates memory using delete[]().
Definition at line 64 of file itkNeighborhoodAllocator.h.
Referenced by itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::set_size(), and itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::~NeighborhoodAllocator().
const_iterator itk::NeighborhoodAllocator< TPixel >::end | ( | ) | const [inline] |
STL-style iterator support for the memory buffer.
Definition at line 115 of file itkNeighborhoodAllocator.h.
iterator itk::NeighborhoodAllocator< TPixel >::end | ( | ) | [inline] |
STL-style iterator support for the memory buffer.
Definition at line 113 of file itkNeighborhoodAllocator.h.
bool itk::NeighborhoodAllocator< TPixel >::operator!= | ( | const Self & | other | ) | const [inline] |
Not Equal operator.
Definition at line 103 of file itkNeighborhoodAllocator.h.
const Self& itk::NeighborhoodAllocator< TPixel >::operator= | ( | const Self & | other | ) | [inline] |
Assignment operator.
Definition at line 84 of file itkNeighborhoodAllocator.h.
bool itk::NeighborhoodAllocator< TPixel >::operator== | ( | const Self & | other | ) | const [inline] |
Comparison operator.
Definition at line 97 of file itkNeighborhoodAllocator.h.
TPixel& itk::NeighborhoodAllocator< TPixel >::operator[] | ( | unsigned int | i | ) | [inline] |
Data access methods
Definition at line 124 of file itkNeighborhoodAllocator.h.
const TPixel& itk::NeighborhoodAllocator< TPixel >::operator[] | ( | unsigned int | i | ) | const [inline] |
Data access methods
Definition at line 122 of file itkNeighborhoodAllocator.h.
Referenced by itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::NeighborhoodAllocator(), and itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::operator=().
void itk::NeighborhoodAllocator< TPixel >::set_size | ( | unsigned int | n | ) | [inline] |
Allocates or Reallocates a buffer of size n
Definition at line 129 of file itkNeighborhoodAllocator.h.
Referenced by itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::NeighborhoodAllocator(), and itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::operator=().
unsigned int itk::NeighborhoodAllocator< TPixel >::size | ( | void | ) | const [inline] |
STL-style iterator support for the memory buffer.
Definition at line 117 of file itkNeighborhoodAllocator.h.
Referenced by itk::operator<<().
TPixel* itk::NeighborhoodAllocator< TPixel >::m_Data [protected] |
Definition at line 138 of file itkNeighborhoodAllocator.h.
Referenced by itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::Allocate(), itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::begin(), itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::Deallocate(), itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::end(), itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::operator!=(), itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::operator==(), itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::operator[](), and itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::set_size().
unsigned int itk::NeighborhoodAllocator< TPixel >::m_ElementCount [protected] |
Definition at line 137 of file itkNeighborhoodAllocator.h.
Referenced by itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::Allocate(), itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::Deallocate(), itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::end(), itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::NeighborhoodAllocator(), itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::operator=(), and itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::size().