Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages

# ACE_Dynamic Class Reference

Checks to see if an object was dynamically allocated. More...

`#include <Dynamic.h>`

List of all members.

## Public Methods
| ACE_Dynamic (void)
| Constructor. More...
| ~ACE_Dynamic (void)
| Destructor. More...
void | set (void)
| Sets a flag that indicates that the object was dynamically created. More...
int | is_dynamic (void)
| 1 if we were allocated dynamically, else 0. More...
void | reset (void)
| Resets state flag. More...
## Static Public Methods
ACE_Dynamic * | instance (void)
## Private Attributes
int | is_dynamic_
| Flag that indicates that the object was dynamically created. More...

## Detailed Description

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.

## Constructor & Destructor Documentation

ACE_Dynamic::ACE_Dynamic | ( | void |  | ) |

| Constructor.

ACE_INLINE ACE_Dynamic::~ACE_Dynamic | ( | void |  | ) |

| Destructor.

## Member Function Documentation

ACE_Dynamic * ACE_Dynamic::instance | ( | void |  | ) | `[static]`

ACE_INLINE int ACE_Dynamic::is_dynamic | ( | void |  | ) |

| 1 if we were allocated dynamically, else 0.

ACE_INLINE void ACE_Dynamic::reset | ( | void |  | ) |

| Resets state flag.

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.

## Member Data Documentation

int 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.

The documentation for this class was generated from the following files:

- Dynamic.h
- Dynamic.cpp
- Dynamic.i