#include <IMG_MemPtr.h>
Public Methods | |
| IMG_MemPtr (size_t s) | |
| Constructs a memory pointer. More... | |
| IMG_MemPtr (void *p,size_t s) | |
| Constructs a memory pointer from a pointer. More... | |
| ~IMG_MemPtr () | |
| Destructor. | |
| operator T * () | |
| Access to the memory. More... | |
Public Attributes | |
| T* | m_p |
| Pointer to the memory. | |
| bool | m_owned |
It can be used to avoid memory leaks when allocating memory in constructors.
|
||||
|
Constructs a memory pointer.
|
|
||||||
|
Constructs a memory pointer from a pointer.
|
|
||||
|
Access to the memory.
|
1.2.4 written by Dimitri van Heesch,
© 1997-2000