A.I.M.S algorithms


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

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

Definition at line 69 of file geodesic_memory.h.

Constructor & Destructor Documentation

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.

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

Definition at line 78 of file geodesic_memory.h.

Member Function Documentation

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

Definition at line 105 of file geodesic_memory.h.

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

Definition at line 80 of file geodesic_memory.h.

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

Definition at line 128 of file geodesic_memory.h.

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

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