ACE_Static_Allocator(3)

ACE_Static_Allocator3

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

Usage

#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];
};

Overview

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.

Library

ace

Author

Doug Schmidt and Irfan Pyarali

From libace-doc 5.0.7-4 in Debian 2.2 (Potato). Parsed by carta from the page's man source.