NAME
ACE_Obstack -
Define a simple "mark and release" memory allocation utility.
This class is based on the GNU obstack utility.
SYNOPSIS
#include <ace/Obstack.h>
class ACE_Obstack
{
public:
ACE_Obstack (int size = 4080);
~ACE_Obstack (void);
char *copy (const char* data, size_t len);
void release (void);
void dump (void) const;
ACE_ALLOC_HOOK_DECLARE;
protected:
size_t size_;
};
Initialization and termination methods.
ACE_Obstack (int size = 4080);
~ACE_Obstack (void);
char *copy (const char* data, size_t len);
Copy the data into the current Obchunk.
void release (void);
"Release" the entire stack (without freeing it).
void dump (void) const;
Dump the state of an object.
ACE_ALLOC_HOOK_DECLARE;
Declare the dynamic allocation hooks.
AUTHOR
Doug Schmidt
LIBRARY
ace