MeshTex  3.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
AllocatedMatrix< Element > Class Template Reference

Matrix subclass that allocates its data array on construction and deallocates it on destruction. More...

#include <AllocatedMatrix.h>

List of all members.

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.

Detailed Description

template<typename Element>
class AllocatedMatrix< Element >

Matrix subclass that allocates its data array on construction and deallocates it on destruction.


Constructor & Destructor Documentation

template<typename Element >
AllocatedMatrix< Element >::AllocatedMatrix ( std::size_t  x,
std::size_t  y 
)
inline

Constructor.

Allocates a data array of the appropriate size.

Parameters:
xMatrix x dimension.
yMatrix y dimension.
template<typename Element >
AllocatedMatrix< Element >::~AllocatedMatrix ( )
inline

Destructor.

Deallocates the data array.


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