Class automatically deletes dynamic objects. More...
#include <utilities/cpp_utilities.h>
Public Member Functions | |
| DynamicObjectKeeper (type *theKeepingObject) | |
| virtual | ~DynamicObjectKeeper () |
Private Attributes | |
| type * | KeepingObject |
Class automatically deletes dynamic objects.
Definition at line 159 of file cpp_utilities.h.
| nitro::DynamicObjectKeeper< type >::DynamicObjectKeeper | ( | type * | theKeepingObject | ) | [inline] |
Constructor.
Definition at line 172 of file cpp_utilities.h.
References nitro::DynamicObjectKeeper< type >::KeepingObject.
{
KeepingObject = theKeepingObject;
}
| virtual nitro::DynamicObjectKeeper< type >::~DynamicObjectKeeper | ( | ) | [inline, virtual] |
Destructor (virtual).
Definition at line 187 of file cpp_utilities.h.
References nitro::DynamicObjectKeeper< type >::KeepingObject.
{
delete KeepingObject;
}
type* nitro::DynamicObjectKeeper< type >::KeepingObject [private] |
Stored data.
Definition at line 204 of file cpp_utilities.h.
Referenced by nitro::DynamicObjectKeeper< type >::DynamicObjectKeeper(), and nitro::DynamicObjectKeeper< type >::~DynamicObjectKeeper().
1.6.1