LManagedPtrBase Class Reference
class LManagedPtrBase : protected LAutoPtrBase< TPtrCleanupTraits< T, CleanupStrategyType >::BaseManagedType > |
Inherited Functions |
---|
| LAutoPtrBase< TPtrCleanupTraits< T, CleanupStrategyType >::BaseManagedType >::Disable() |
| LAutoPtrBase< TPtrCleanupTraits< T, CleanupStrategyType >::BaseManagedType >::Get()const |
| LAutoPtrBase< TPtrCleanupTraits< T, CleanupStrategyType >::BaseManagedType >::IsEnabled()const |
| LAutoPtrBase< TPtrCleanupTraits< T, CleanupStrategyType >::BaseManagedType >::LAutoPtrBase() |
| LAutoPtrBase< TPtrCleanupTraits< T, CleanupStrategyType >::BaseManagedType >::LAutoPtrBase(TPtrCleanupTraits< T, CleanupStrategyType >::BaseManagedType *) |
| LAutoPtrBase< TPtrCleanupTraits< T, CleanupStrategyType >::BaseManagedType >::Swap(LAutoPtrBase &) |
| LAutoPtrBase< TPtrCleanupTraits< T, CleanupStrategyType >::BaseManagedType >::Unmanage() |
| LAutoPtrBase< TPtrCleanupTraits< T, CleanupStrategyType >::BaseManagedType >::operator->()const |
| LAutoPtrBase< TPtrCleanupTraits< T, CleanupStrategyType >::BaseManagedType >::operator=(TPtrCleanupTraits< T, CleanupStrategyType >::BaseManagedType *) |
Detailed Description
Implementation base class - not designed for public inheritance or direct use.
Member Type Definition Documentation
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 ( )
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.
- Post-condition
-
Get() == NULL
Swap ( LManagedPtrBase & )