Main Page | Class List | File List | Class Members

CS_MATRIX< T > Class Template Reference

Denotes the base simulated datatype. More...

#include <CS_MATRIX.hpp>

Collaboration diagram for CS_MATRIX< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CS_MATRIX (unsigned long int rows, unsigned long int cols, std::string descr)
 The only valid constructor.
unsigned long int cols () const
 Returns the size of the array.
unsigned long int rows () const
 Returns the size of the array.
T & operator() (unsigned long int i, unsigned long int j)
 Matrix accessor.
T & access (unsigned long int i, unsigned long int j)
 Matrix access, function version.
const T & const_access (unsigned long int i, unsigned long int j) const
 Const matrix access version.

Static Public Member Functions

std::string fDim (const CS_MATRIX &obj)
 Gets the dimension of a given data matrix.

Public Attributes

std::string _descr
 Description of the current variable.

Protected Attributes

T ** _matrix
 Contains the actual data.
unsigned long int _cols
 column size.
unsigned long int _rows
 row size.

Detailed Description

template<typename T>
class CS_MATRIX< T >

Denotes the base simulated datatype.


Member Function Documentation

template<typename T>
std::string CS_MATRIX< T >::fDim const CS_MATRIX< T > &  obj  )  [inline, static]
 

Gets the dimension of a given data matrix.

Parameters:
obj Reference to the matrix to get the dimensions of.
Returns:
The dimensions formatted as a string.


The documentation for this class was generated from the following file:
Generated on Fri Aug 15 18:12:24 2008 for Run-timeCacheSimulator by  doxygen 1.3.9.1