Reference

ACE_Static_Allocator(3)

Defines a class that provided a highly optimized memory management scheme for allocating memory statically.

NAME

ACE_Static_Allocator - Defines a class that provided a highly optimized memory management scheme for allocating memory statically.

SYNOPSIS

#include <ace/Malloc_T.h>
template<size_t POOL_SIZE>
class ACE_Static_Allocator : public ACE_Static_Allocator_Base
{
  public:
    inline ACE_Static_Allocator (void);
  private:
    char pool_[POOL_SIZE];
};

DESCRIPTION

This class allocates a fixed-size POOL_SIZE of memory and uses the ACE_Static_Allocator_Base class implementations of malloc and calloc to optimize memory allocation from this pool.

PUBLIC MEMBERS

inline ACE_Static_Allocator (void);

This function must be inlined!!!

PRIVATE MEMBERS

char pool_[POOL_SIZE];

Pool contents.

AUTHOR

Doug Schmidt and Irfan Pyarali

LIBRARY

ace