Matrix subclass that allocates its data array on construction and deallocates it on destruction. More...
#include <AllocatedMatrix.h>
Public Member Functions | |
AllocatedMatrix (std::size_t x, std::size_t y) | |
Constructor. | |
~AllocatedMatrix () | |
Destructor. |
Private Attributes | |
Element * | _allocated |
Pointer to the data array so that the destructor can find it for deletion. |
Matrix subclass that allocates its data array on construction and deallocates it on destruction.
|
inline |
Constructor.
Allocates a data array of the appropriate size.
x | Matrix x dimension. |
y | Matrix y dimension. |
|
inline |
Destructor.
Deallocates the data array.