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