Public Member Functions | |
CSmartLocalPointer () | |
Create a CSmartLocalPointer that currently owns no memory. | |
CSmartLocalPointer (void *pLocalMemory) | |
Create a CSmartLocalPointer that owns the supplied memory which must have been allocated using LocalAlloc(). | |
CSmartLocalPointer (const CSmartLocalPointer &rhs) | |
~CSmartLocalPointer () | |
CSmartLocalPointer & | operator= (const CSmartLocalPointer &rhs) |
CSmartLocalPointer & | operator= (void *pLocalMemory) |
void * | Get () const |
Obtain access to any memory that is owned by the pointer. | |
void * | Detach () |
Give up ownership and return any memory that is owned. | |
operator void * () const | |
Provide access to any memory that is owned by the pointer. | |
bool | IsValid () const |
Returns true if the CSmartLocalPointer currently owns some memory. |
Create a CSmartLocalPointer that currently owns no memory.
CSmartLocalPointer | ( | void * | pLocalMemory | ) | [explicit] |
Create a CSmartLocalPointer that owns the supplied memory which must have been allocated using LocalAlloc().
CSmartLocalPointer | ( | const CSmartLocalPointer & | rhs | ) |
~CSmartLocalPointer | ( | ) |
CSmartLocalPointer& operator= | ( | const CSmartLocalPointer & | rhs | ) |
CSmartLocalPointer & operator= | ( | void * | pLocalMemory | ) |
void * Get | ( | ) | const |
Obtain access to any memory that is owned by the pointer.
HANDLE Detach | ( | ) |
Give up ownership and return any memory that is owned.
operator void * | ( | ) | const |
Provide access to any memory that is owned by the pointer.
bool IsValid | ( | ) | const |
Returns true if the CSmartLocalPointer currently owns some memory.