Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

vcl_simple_alloc< T, Alloc > Class Template Reference

#include <vcl_alloc.h>

List of all members.

Public Types

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

Static Public Methods

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

template<class T, class Alloc>
class vcl_simple_alloc< T, Alloc >


Member Typedef Documentation

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

Definition at line 25 of file vcl_alloc.h.

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

Definition at line 26 of file vcl_alloc.h.

Referenced by vcl_simple_alloc< T, Alloc >::allocate(), and vcl_simple_alloc< T, Alloc >::deallocate().


Member Enumeration Documentation

template<class T, class Alloc>
anonymous enum
 

Enumeration values:
chunk 

Definition at line 29 of file vcl_alloc.h.


Member Function Documentation

template<class T, class Alloc>
value_type* vcl_simple_alloc< T, Alloc >::allocate void    [inline, static]
 

Definition at line 39 of file vcl_alloc.h.

References vcl_simple_alloc< T, Alloc >::chunk, and vcl_simple_alloc< T, Alloc >::value_type.

template<class T, class Alloc>
value_type* vcl_simple_alloc< T, Alloc >::allocate vcl_size_t    n [inline, static]
 

Definition at line 37 of file vcl_alloc.h.

References vcl_simple_alloc< T, Alloc >::chunk, and vcl_simple_alloc< T, Alloc >::value_type.

template<class T, class Alloc>
void vcl_simple_alloc< T, Alloc >::deallocate value_type   p [inline, static]
 

Definition at line 43 of file vcl_alloc.h.

References vcl_simple_alloc< T, Alloc >::chunk, and vcl_simple_alloc< T, Alloc >::value_type.

template<class T, class Alloc>
void vcl_simple_alloc< T, Alloc >::deallocate value_type   p,
vcl_size_t    n
[inline, static]
 

Definition at line 41 of file vcl_alloc.h.

References vcl_simple_alloc< T, Alloc >::chunk, and vcl_simple_alloc< T, Alloc >::value_type.


The documentation for this class was generated from the following file:
Generated at Fri May 21 01:16:35 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000