aimsalgo  5.0.5
Neuroimaging image processing
geodesic::MemoryAllocator< T > Class Template Reference

#include <aims/geodesicpath/geodesic_memory.h>

Inheritance diagram for geodesic::MemoryAllocator< T >:

Public Types

typedef T * pointer
 

Public Member Functions

 MemoryAllocator (unsigned block_size=1024, unsigned max_number_of_blocks=1024)
 
 ~MemoryAllocator ()
 
void clear ()
 
void reset (unsigned block_size, unsigned max_number_of_blocks)
 
pointer allocate ()
 
void deallocate (pointer p)
 

Detailed Description

template<class T>
class geodesic::MemoryAllocator< T >

Definition at line 66 of file geodesic_memory.h.

Member Typedef Documentation

◆ pointer

template<class T>
typedef T* geodesic::MemoryAllocator< T >::pointer

Definition at line 69 of file geodesic_memory.h.

Constructor & Destructor Documentation

◆ MemoryAllocator()

template<class T>
geodesic::MemoryAllocator< T >::MemoryAllocator ( unsigned  block_size = 1024,
unsigned  max_number_of_blocks = 1024 
)
inline

Definition at line 71 of file geodesic_memory.h.

◆ ~MemoryAllocator()

template<class T>
geodesic::MemoryAllocator< T >::~MemoryAllocator ( )
inline

Definition at line 78 of file geodesic_memory.h.

Member Function Documentation

◆ allocate()

template<class T>
pointer geodesic::MemoryAllocator< T >::allocate ( )
inline

Definition at line 105 of file geodesic_memory.h.

◆ clear()

template<class T>
void geodesic::MemoryAllocator< T >::clear ( )
inline

Definition at line 80 of file geodesic_memory.h.

◆ deallocate()

template<class T>
void geodesic::MemoryAllocator< T >::deallocate ( pointer  p)
inline

Definition at line 128 of file geodesic_memory.h.

◆ reset()

template<class T>
void geodesic::MemoryAllocator< T >::reset ( unsigned  block_size,
unsigned  max_number_of_blocks 
)
inline

Definition at line 86 of file geodesic_memory.h.


The documentation for this class was generated from the following file: