LManagedPtrBase Class Reference

#include <emanaged.h>

class LManagedPtrBase : protected LAutoPtrBase

Inherits from

Detailed Description

Implementation base class - not designed for public inheritance or direct use.

Member Type Definition Documentation

Typedef BaseManagedType

typedef TPtrCleanupTraits< T, CleanupStrategyType >::BaseManagedTypeBaseManagedType[protected]

Typedef CleanupStrategy

typedef TPtrCleanupTraits< T, CleanupStrategyType >::CleanupStrategyCleanupStrategy[protected]

Typedef ManagedType

typedef TPtrCleanupTraits< T, CleanupStrategyType >::ManagedTypeManagedType[protected]

Constructor & Destructor Documentation

LManagedPtrBase ( )

LManagedPtrBase()[protected, inline]

LManagedPtrBase ( U * )

LManagedPtrBase(U *aPtr)[protected, inline, explicit]

~LManagedPtrBase ( )

~LManagedPtrBase()[protected, inline]

Destructor. When automatic resource management is enabled, the destructor invokes the specified cleanup strategy for the managed pointer.

Member Function Documentation

ReleaseResource ( )

voidReleaseResource()[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.

Post-condition
Get() == NULL

Swap ( LManagedPtrBase & )

voidSwap(LManagedPtrBase &aManagedPtr)[protected, inline]

operator= ( U * )

LManagedPtrBase &operator=(U *aPtr)[protected, inline]