NAME
ACE_Dynamic -
Checks to see if an object was dynamically allocated.
SYNOPSIS
#include <ace/Dynamic.h>
class ACE_Dynamic
{
public:
ACE_Dynamic (void);
~ACE_Dynamic (void);
void set (void);
int is_dynamic (void);
void reset (void);
static ACE_Dynamic *instance (void);
private:
int is_dynamic_;
};
DESCRIPTION
This class holds the pointer in a thread-safe manner between
the call to operator new and the call to the constructor.
Initialization and termination method.
ACE_Dynamic (void);
~ACE_Dynamic (void);
void set (void);
Sets a flag that indicates that the object was dynamically
created. This method is usually called in operator new and then
checked and reset in the constructor.
int is_dynamic (void);
1 if we were allocated dynamically, else 0.
void reset (void);
static ACE_Dynamic *instance (void);
AUTHOR
Doug Schmidt and Irfan Pyrarli.
LIBRARY
ace