qaf::Matrix< T > Class Template Reference

#include <qafMatrix.h>

List of all members.


Detailed Description

template<typename T>
class qaf::Matrix< T >

General-purpose storage class to arrange data as rows and columns.


Public Member Functions

 Matrix (int _rows, int _columns)
 The constructor will allocate a block of memory to store the data.
 Matrix (Matrix< T > &orig)
 Copy constructor: Copies data from the other matrix.
T & cell (int row, int column) const
 Cell access method.
virtual ~Matrix ()
 Destructor: Deallocates the memory block used to store the matrix's data.

Public Attributes

const int rows
 Matrix dimensions, initialized in the constructor.
const int columns


Constructor & Destructor Documentation

template<typename T>
qaf::Matrix< T >::Matrix ( int  _rows,
int  _columns 
) [inline]

The constructor will allocate a block of memory to store the data.

The Matrix's dimensions cannot be changed after creation.


Member Function Documentation

template<typename T>
T& qaf::Matrix< T >::cell ( int  row,
int  column 
) const [inline]

Cell access method.

Returns:
A reference to the cell's element; this allows clients to modify the matrix's contents.
Exceptions:
std::out_of_range if either the row or column indices exceed the matrix's dimensions.


The documentation for this class was generated from the following file:
Generated on Sun Mar 25 12:32:15 2007 for Qaf Framework by  doxygen 1.5.1-p1