![]() |
Orfeo Toolbox
3.16
|
#include <itkNeighborhoodAllocator.h>
Inheritance diagram for itk::NeighborhoodAllocator< TPixel >:
Collaboration diagram for itk::NeighborhoodAllocator< TPixel >:Public Types | |
| typedef const TPixel * | const_iterator |
| typedef TPixel * | iterator |
| typedef NeighborhoodAllocator | Self |
Public Member Functions | |
| NeighborhoodAllocator () | |
| NeighborhoodAllocator (const Self &other) | |
| ~NeighborhoodAllocator () | |
| void | Allocate (unsigned int n) |
| iterator | begin () |
| const_iterator | begin () const |
| void | Deallocate () |
| iterator | end () |
| const_iterator | end () const |
| bool | operator!= (const Self &other) const |
| const Self & | operator= (const Self &other) |
| bool | operator== (const Self &other) const |
| const TPixel & | operator[] (unsigned int i) const |
| TPixel & | operator[] (unsigned int i) |
| void | set_size (unsigned int n) |
| unsigned int | size () const |
Protected Attributes | |
| TPixel * | m_Data |
| unsigned int | m_ElementCount |
This is a memory allocator for use as the default allocator type in Neighborhood. The API is designed to mimic that of vnl_vector so that vnl_vector can also be used as an allocator for Neighborhood.
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.
| 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.
|
inline |
Default constructor
Definition at line 49 of file itkNeighborhoodAllocator.h.
|
inline |
Default destructor
Definition at line 52 of file itkNeighborhoodAllocator.h.
|
inline |
Copy constructor.
Definition at line 70 of file itkNeighborhoodAllocator.h.
|
inline |
Allocates memory using new()
Definition at line 56 of file itkNeighborhoodAllocator.h.
Referenced by itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::set_size().
|
inline |
STL-style iterator support for the memory buffer.
Definition at line 105 of file itkNeighborhoodAllocator.h.
Referenced by itk::operator<<().
|
inline |
Definition at line 107 of file itkNeighborhoodAllocator.h.
|
inline |
Deallocates memory using delete[]().
Definition at line 63 of file itkNeighborhoodAllocator.h.
Referenced by itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::set_size(), and itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::~NeighborhoodAllocator().
|
inline |
Definition at line 109 of file itkNeighborhoodAllocator.h.
|
inline |
Definition at line 111 of file itkNeighborhoodAllocator.h.
|
inline |
Not Equal operator.
Definition at line 99 of file itkNeighborhoodAllocator.h.
|
inline |
Assignment operator.
Definition at line 81 of file itkNeighborhoodAllocator.h.
|
inline |
Comparison operator.
Definition at line 93 of file itkNeighborhoodAllocator.h.
|
inline |
Data access methods
Definition at line 117 of file itkNeighborhoodAllocator.h.
Referenced by itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::NeighborhoodAllocator(), and itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::operator=().
|
inline |
Definition at line 119 of file itkNeighborhoodAllocator.h.
|
inline |
Allocates or Reallocates a buffer of size n
Definition at line 123 of file itkNeighborhoodAllocator.h.
Referenced by itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::NeighborhoodAllocator(), and itk::NeighborhoodAllocator< TDeformationField::InternalPixelType * >::operator=().
|
inline |
Definition at line 113 of file itkNeighborhoodAllocator.h.
Referenced by itk::operator<<().
|
protected |
Definition at line 131 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().
|
protected |
Definition at line 130 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().