Public Member Functions | Private Attributes

nitro::DynamicArrayKeeper< type > Class Template Reference

Class automatically deletes dynamic arrays. More...

#include <utilities/cpp_utilities.h>

List of all members.

Public Member Functions

 DynamicArrayKeeper (type *theKeepingArray)
virtual ~DynamicArrayKeeper ()

Private Attributes

type * KeepingArray

Detailed Description

template<class type>
class nitro::DynamicArrayKeeper< type >

Class automatically deletes dynamic arrays.

Author:
Dodonov A.A.

Definition at line 99 of file cpp_utilities.h.


Constructor & Destructor Documentation

template<class type>
nitro::DynamicArrayKeeper< type >::DynamicArrayKeeper ( type *  theKeepingArray  )  [inline]

Constructor.

Author:
Dodonov A.A.

Definition at line 112 of file cpp_utilities.h.

References nitro::DynamicArrayKeeper< type >::KeepingArray.

                {
                        KeepingArray = theKeepingArray;
                }

template<class type>
virtual nitro::DynamicArrayKeeper< type >::~DynamicArrayKeeper (  )  [inline, virtual]

Destructor (virtual).

Author:
Dodonov A.A.

Definition at line 127 of file cpp_utilities.h.

References nitro::DynamicArrayKeeper< type >::KeepingArray.

                {
                        delete [] KeepingArray;
                }


Member Data Documentation

template<class type>
type* nitro::DynamicArrayKeeper< type >::KeepingArray [private]

Stored data.

Author:
Dodonov A.A.

Definition at line 144 of file cpp_utilities.h.

Referenced by nitro::DynamicArrayKeeper< type >::DynamicArrayKeeper(), and nitro::DynamicArrayKeeper< type >::~DynamicArrayKeeper().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.1