Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

OS_Memory.h File Reference

#include "ace/pre.h"
#include "ace/OS_Export.h"
#include "ace/OS_Errno.h"
#include <stddef.h>
#include "ace/post.h"

Include dependency graph for OS_Memory.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Compounds

class  ACE_OS_Memory
 This class is a wrapper for dynamic memory operations. More...


Defines

#define ACE_MALLOC_ALIGN   ((int) sizeof (long))
#define ACE_MALLOC_FUNC   ::malloc
#define ACE_CALLOC_FUNC   ::calloc
#define ACE_FREE_FUNC   ::free
#define ACE_REALLOC_FUNC   ::realloc
#define ACE_NEW_RETURN(POINTER, CONSTRUCTOR, RET_VAL)
#define ACE_NEW(POINTER, CONSTRUCTOR)
#define ACE_NEW_NORETURN(POINTER, CONSTRUCTOR)
#define ACE_throw_bad_alloc

Typedefs

typedef void * ACE_MALLOC_T

Detailed Description

OS_Memory.h,v 4.13 2002/11/23 22:55:03 shuston Exp

Author:
Doug Schmidt <schmidt@cs.wustl.edu> , Jesper S. M|ller<stophph@diku.dk> , and a cast of thousands...

Define Documentation

#define ACE_CALLOC_FUNC   ::calloc
 

#define ACE_FREE_FUNC   ::free
 

#define ACE_MALLOC_ALIGN   ((int) sizeof (long))
 

#define ACE_MALLOC_FUNC   ::malloc
 

#define ACE_NEW POINTER,
CONSTRUCTOR   
 

Value:

do { POINTER = new CONSTRUCTOR; \
     if (POINTER == 0) { errno = ENOMEM; return; } \
   } while (0)

#define ACE_NEW_NORETURN POINTER,
CONSTRUCTOR   
 

Value:

do { POINTER = new CONSTRUCTOR; \
     if (POINTER == 0) { errno = ENOMEM; } \
   } while (0)

#define ACE_NEW_RETURN POINTER,
CONSTRUCTOR,
RET_VAL   
 

Value:

do { POINTER = new CONSTRUCTOR; \
     if (POINTER == 0) { errno = ENOMEM; return RET_VAL; } \
   } while (0)

#define ACE_REALLOC_FUNC   ::realloc
 

#define ACE_throw_bad_alloc
 

Value:

void* gcc_will_complain_if_literal_0_is_returned = 0; \
  return gcc_will_complain_if_literal_0_is_returned


Typedef Documentation

typedef void* ACE_MALLOC_T
 


Generated on Wed Dec 25 18:20:03 2002 for ACE by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001