GClasses
|
Just like Holder, except for arrays.
#include <GHolders.h>
Public Member Functions | |
ArrayHolder (T *p=NULL) | |
~ArrayHolder () | |
Deletes the array of objects being held. More... | |
T * | get () |
Returns a pointer to the first element of the array being held. More... | |
T & | operator[] (size_t n) |
T * | release () |
Releases the array. (After calling this method, it is your job to delete the array.) More... | |
void | reset (T *p=NULL) |
Deletes the array of objects being held and sets this holder to hold NULL. More... | |
|
inline |
|
inline |
Deletes the array of objects being held.
|
inline |
Returns a pointer to the first element of the array being held.
|
inline |
|
inline |
Releases the array. (After calling this method, it is your job to delete the array.)
|
inline |
Deletes the array of objects being held and sets this holder to hold NULL.