|
ACE 8.0.1
|
Checks to see if an object was dynamically allocated. More...
#include <Dynamic.h>
Public Member Functions | |
| ACE_Dynamic () | |
| Constructor. | |
| ~ACE_Dynamic () | |
| Destructor. | |
| void | set () |
| bool | is_dynamic () |
true if we were allocated dynamically, else false. | |
| void | reset () |
| Resets state flag. | |
Static Public Member Functions | |
| static ACE_Dynamic * | instance () |
Public Attributes | |
| ACE_ALLOC_HOOK_DECLARE | |
Private Attributes | |
| bool | is_dynamic_ |
Checks to see if an object was dynamically allocated.
This class holds the pointer in a thread-safe manner between the call to operator new and the call to the constructor.
| ACE_Dynamic::ACE_Dynamic | ( | ) |
Constructor.
|
inline |
Destructor.
|
static |
|
inline |
true if we were allocated dynamically, else false.
|
inline |
Resets state flag.
|
inline |
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.
| ACE_Dynamic::ACE_ALLOC_HOOK_DECLARE |
|
private |
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.