Class automatically deletes dynamic arrays. More...
#include <utilities/cpp_utilities.h>
Public Member Functions | |
DynamicArrayKeeper (type *theKeepingArray) | |
virtual | ~DynamicArrayKeeper () |
Private Attributes | |
type * | KeepingArray |
Class automatically deletes dynamic arrays.
Definition at line 99 of file cpp_utilities.h.
nitro::DynamicArrayKeeper< type >::DynamicArrayKeeper | ( | type * | theKeepingArray | ) | [inline] |
Constructor.
Definition at line 112 of file cpp_utilities.h.
References nitro::DynamicArrayKeeper< type >::KeepingArray.
{ KeepingArray = theKeepingArray; }
virtual nitro::DynamicArrayKeeper< type >::~DynamicArrayKeeper | ( | ) | [inline, virtual] |
Destructor (virtual).
Definition at line 127 of file cpp_utilities.h.
References nitro::DynamicArrayKeeper< type >::KeepingArray.
{ delete [] KeepingArray; }
type* nitro::DynamicArrayKeeper< type >::KeepingArray [private] |
Stored data.
Definition at line 144 of file cpp_utilities.h.
Referenced by nitro::DynamicArrayKeeper< type >::DynamicArrayKeeper(), and nitro::DynamicArrayKeeper< type >::~DynamicArrayKeeper().