NAME
ACE_Dynamic -
Checks to see if an object was dynamically allocated.
SYNOPSIS
#include <ace/Dynamic.h>
class ACE_Dynamic
{
public:
ACE_Dynamic (void);
void set (void);
int is_dynamic (void);
void reset (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.
PUBLIC MEMBERS
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);
PRIVATE MEMBERS
int is_dynamic_;
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.
AUTHOR
Doug Schmidt and Irfan Pyrarli.
LIBRARY
ace