Old AutoPtr class, maintained to support backwards compatibility.
The old single-pointer AutoPtr was removed from the Util namespace, and has been replaced with MaxSDK::AutoPtr<Type> using its default destruction policy template parameter.
#include <autoptr.h>
Public Member Functions |
|
AutoPtr (Type *p=NULL) | |
Construct, assuming ownership of the
pointed-to object. |
|
AutoPtr (const AutoPtrRef< Type > &ref) | |
Construct from an
AutoPtrRef. |
|
template<typename OtherType > | |
operator AutoPtr< OtherType > () | |
Destructive copy-convert allowing for cast
of the pointer type. |
AutoPtr | ( | Type * | p = NULL |
) | [inline, explicit] |
Construct, assuming ownership of the pointed-to object.
p | Plain pointer to an object - this AutoPtr will assume ownership of that object. |
Reimplemented from AutoPtr< Type >.
: MaxSDK::AutoPtr<Type>(p) { };
AutoPtr | ( | const AutoPtrRef< Type > & | ref | ) | [inline] |
Construct from an AutoPtrRef.
This may be done implicitly or explicitly. The Ref object exists to avoid temporarily needing to have two AutoPtrs own the same object.
ref | helper object. |
Reimplemented from AutoPtr< Type >.
: MaxSDK::AutoPtr<Type>(ref.mPtr) { }