#include <itkNeighborhoodAllocator.h>
Collaboration diagram for itk::NeighborhoodAllocator< TPixel >:
Public Types | |
typedef NeighborhoodAllocator | Self |
typedef TPixel * | iterator |
typedef const TPixel * | const_iterator |
Public Methods | |
NeighborhoodAllocator () | |
~NeighborhoodAllocator () | |
bool | operator== (const Self &other) const |
bool | operator!= (const Self &other) const |
void | Allocate (unsigned int n) |
void | Deallocate () |
NeighborhoodAllocator (const Self &other) | |
const Self & | operator= (const Self &other) |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
unsigned int | size () const |
const TPixel & | operator[] (unsigned int i) const |
TPixel & | operator[] (unsigned int i) |
void | resize (unsigned int n) |
Protected Attributes | |
unsigned int | m_ElementCount |
TPixel * | m_Data |
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.
|
Definition at line 46 of file itkNeighborhoodAllocator.h. Referenced by itk::NeighborhoodAllocator< TPixel >::begin(). |
|
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. Referenced by itk::NeighborhoodAllocator< TPixel >::begin(), and itk::NeighborhoodAllocator< TPixel >::operator!=(). |
|
Standard class typedefs. Definition at line 39 of file itkNeighborhoodAllocator.h. |
|
Default constructor Definition at line 49 of file itkNeighborhoodAllocator.h. References itk::NeighborhoodAllocator< TPixel >::m_Data, and itk::NeighborhoodAllocator< TPixel >::m_ElementCount. |
|
Default destructor Definition at line 52 of file itkNeighborhoodAllocator.h. References itk::NeighborhoodAllocator< TPixel >::Deallocate(). |
|
Copy constructor. Definition at line 72 of file itkNeighborhoodAllocator.h. References itk::NeighborhoodAllocator< TPixel >::m_ElementCount. |
|
Allocates memory using new() Definition at line 56 of file itkNeighborhoodAllocator.h. References itk::NeighborhoodAllocator< TPixel >::m_Data, and itk::NeighborhoodAllocator< TPixel >::m_ElementCount. Referenced by itk::NeighborhoodAllocator< TPixel >::operator[](). |
|
STL-style iterator support for the memory buffer. Definition at line 107 of file itkNeighborhoodAllocator.h. References itk::NeighborhoodAllocator< TPixel >::const_iterator, itk::NeighborhoodAllocator< TPixel >::m_Data, and itk::NeighborhoodAllocator< TPixel >::m_ElementCount. |
|
STL-style iterator support for the memory buffer. Definition at line 105 of file itkNeighborhoodAllocator.h. References itk::NeighborhoodAllocator< TPixel >::iterator, itk::NeighborhoodAllocator< TPixel >::m_Data, and itk::NeighborhoodAllocator< TPixel >::m_ElementCount. |
|
Deallocates memory using delete[](). Definition at line 64 of file itkNeighborhoodAllocator.h. References itk::NeighborhoodAllocator< TPixel >::m_Data, and itk::NeighborhoodAllocator< TPixel >::m_ElementCount. Referenced by itk::NeighborhoodAllocator< TPixel >::operator[](), and itk::NeighborhoodAllocator< TPixel >::~NeighborhoodAllocator(). |
|
STL-style iterator support for the memory buffer. Definition at line 111 of file itkNeighborhoodAllocator.h. |
|
STL-style iterator support for the memory buffer. Definition at line 109 of file itkNeighborhoodAllocator.h. References itk::NeighborhoodAllocator< TPixel >::m_ElementCount. |
|
Not Equal operator. Definition at line 99 of file itkNeighborhoodAllocator.h. References itk::NeighborhoodAllocator< TPixel >::iterator, and itk::NeighborhoodAllocator< TPixel >::m_Data. |
|
Assignment operator. Definition at line 82 of file itkNeighborhoodAllocator.h. References itk::NeighborhoodAllocator< TPixel >::m_ElementCount. |
|
Comparison operator. Definition at line 93 of file itkNeighborhoodAllocator.h. References itk::NeighborhoodAllocator< TPixel >::m_Data. |
|
Data access methods Definition at line 120 of file itkNeighborhoodAllocator.h. References itk::NeighborhoodAllocator< TPixel >::Allocate(), and itk::NeighborhoodAllocator< TPixel >::Deallocate(). |
|
Data access methods Definition at line 118 of file itkNeighborhoodAllocator.h. |
|
Allocates or Reallocates a buffer of size n Definition at line 125 of file itkNeighborhoodAllocator.h. References itk::NeighborhoodAllocator< TPixel >::m_Data, and itk::NeighborhoodAllocator< TPixel >::m_ElementCount. |
|
STL-style iterator support for the memory buffer. Definition at line 113 of file itkNeighborhoodAllocator.h. References itk::NeighborhoodAllocator< TPixel >::m_Data. |
|
|