Orfeo Toolbox  3.16
Public Types | Static Public Member Functions | Private Types | List of all members
itk_simple_alloc< T, Alloc > Class Template Reference

#include <itk_alloc.h>

Public Types

enum  { chunk = sizeof(value_type)/sizeof(alloc_value_type)+(sizeof(value_type)sizeof(alloc_value_type)>0) }
 
typedef Alloc::value_type alloc_value_type
 
typedef T value_type
 

Static Public Member Functions

static value_typeallocate (vcl_size_t n)
 
static value_typeallocate (void)
 
static void deallocate (value_type *p, vcl_size_t n)
 
static void deallocate (value_type *p)
 

Private Types

typedef Alloc alloc_type
 

Detailed Description

template<class T, class Alloc>
class itk_simple_alloc< T, Alloc >

Definition at line 22 of file itk_alloc.h.

Member Typedef Documentation

template<class T , class Alloc >
typedef Alloc itk_simple_alloc< T, Alloc >::alloc_type
private

Definition at line 23 of file itk_alloc.h.

template<class T , class Alloc >
typedef Alloc::value_type itk_simple_alloc< T, Alloc >::alloc_value_type

Definition at line 25 of file itk_alloc.h.

template<class T , class Alloc >
typedef T itk_simple_alloc< T, Alloc >::value_type

Definition at line 26 of file itk_alloc.h.

Member Enumeration Documentation

template<class T , class Alloc >
anonymous enum
Enumerator
chunk 

Definition at line 29 of file itk_alloc.h.

Member Function Documentation

template<class T , class Alloc >
static value_type* itk_simple_alloc< T, Alloc >::allocate ( vcl_size_t  n)
inlinestatic

Definition at line 37 of file itk_alloc.h.

References itk_simple_alloc< T, Alloc >::chunk.

template<class T , class Alloc >
static value_type* itk_simple_alloc< T, Alloc >::allocate ( void  )
inlinestatic
template<class T , class Alloc >
static void itk_simple_alloc< T, Alloc >::deallocate ( value_type p,
vcl_size_t  n 
)
inlinestatic
template<class T , class Alloc >
static void itk_simple_alloc< T, Alloc >::deallocate ( value_type p)
inlinestatic

Definition at line 43 of file itk_alloc.h.

References itk_simple_alloc< T, Alloc >::chunk.


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

Generated at Sun May 19 2013 01:02:28 for Orfeo Toolbox with doxygen 1.8.3.1