#include <emanaged.h>
class LManagedPtrBase : protected LAutoPtrBase |
Protected Member Type Definitions | |
---|---|
typedef | TPtrCleanupTraits< T, CleanupStrategyType >::BaseManagedType BaseManagedType |
typedef | TPtrCleanupTraits< T, CleanupStrategyType >::CleanupStrategy CleanupStrategy |
typedef | TPtrCleanupTraits< T, CleanupStrategyType >::ManagedType ManagedType |
Protected Member Functions | |
---|---|
LManagedPtrBase() | |
LManagedPtrBase(U *) | |
~LManagedPtrBase() | |
void | ReleaseResource() |
void | Swap(LManagedPtrBase &) |
LManagedPtrBase & | operator=(U *) |
Inherited Attributes | |
---|---|
LAutoPtrBase::iPtr |
Implementation base class - not designed for public inheritance or direct use.
typedef TPtrCleanupTraits< T, CleanupStrategyType >::BaseManagedType | BaseManagedType | [protected] |
typedef TPtrCleanupTraits< T, CleanupStrategyType >::CleanupStrategy | CleanupStrategy | [protected] |
typedef TPtrCleanupTraits< T, CleanupStrategyType >::ManagedType | ManagedType | [protected] |
LManagedPtrBase | ( | ) | [protected, inline] |
LManagedPtrBase | ( | U * | aPtr | ) | [protected, inline, explicit] |
~LManagedPtrBase | ( | ) | [protected, inline] |
Destructor. When automatic resource management is enabled, the destructor invokes the specified cleanup strategy for the managed pointer.
void | ReleaseResource | ( | ) | [protected, inline] |
If automatic resource management is enabled, the specified cleanup strategy is invoked for the managed pointer and the automatic resource management is then disabled. The underlying pointer is reset to NULL.