Public Member Functions | |
CSmartHeapPointer () | |
Create a CSmartHeapPointer that currently owns no memory. | |
CSmartHeapPointer (void *pHeapMemory) | |
Create a CSmartHeapPointer that owns the supplied memory which must have been allocated from the process heap. | |
CSmartHeapPointer (void *pHeapMemory, HANDLE hHeap) | |
Create a CSmartHeapPointer that owns the supplied memory which must have been allocated from supplied process heap. | |
CSmartHeapPointer (const CSmartHeapPointer &rhs) | |
~CSmartHeapPointer () | |
CSmartHeapPointer & | operator= (const CSmartHeapPointer &rhs) |
CSmartHeapPointer & | operator= (void *pHeapMemory) |
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 CSmartHeapPointer currently owns some memory. |
Create a CSmartHeapPointer that currently owns no memory.
CSmartHeapPointer | ( | void * | pHeapMemory | ) | [explicit] |
Create a CSmartHeapPointer that owns the supplied memory which must have been allocated from the process heap.
CSmartHeapPointer | ( | void * | pHeapMemory, | |
HANDLE | hHeap | |||
) |
Create a CSmartHeapPointer that owns the supplied memory which must have been allocated from supplied process heap.
CSmartHeapPointer | ( | const CSmartHeapPointer & | rhs | ) |
~CSmartHeapPointer | ( | ) |
CSmartHeapPointer& operator= | ( | const CSmartHeapPointer & | rhs | ) |
CSmartHeapPointer & operator= | ( | void * | pHeapMemory | ) |
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 CSmartHeapPointer currently owns some memory.