MeshKit  1.0
CMatrix< T > Class Template Reference

#include <matrixtemplate.hpp>

Inheritance diagram for CMatrix< T >:

List of all members.

Public Member Functions

 CMatrix ()
 CMatrix (int, int)
 CMatrix (const char *)
 CMatrix (const char *, int, int)
 CMatrix (const CMatrix< T > &)
 ~CMatrix ()
void SetSize (int, int)
int GetRows () const
int GetColumns () const
void GetName (std::string &) const
void Set (T)
void SetName (const std::string &)
T & operator() (int, int)
const T & operator() (int, int) const
T & operator= (const CMatrix &)
int Read (std::ifstream &IFile)

Private Member Functions

void ErrorHandler (int, int nR=0, int nC=0) const
void Release ()

Private Attributes

T ** m_pCells
int m_nRows
int m_nColumns
std::string m_szName

Detailed Description

template<class T>
class CMatrix< T >

Definition at line 18 of file matrixtemplate.hpp.


Constructor & Destructor Documentation

CMatrix ( )

Definition at line 60 of file matrixtemplate.hpp.

CMatrix ( int  nR,
int  nC 
)

Definition at line 73 of file matrixtemplate.hpp.

CMatrix ( const char *  szName)

Definition at line 85 of file matrixtemplate.hpp.

CMatrix ( const char *  szName,
int  nR,
int  nC 
)

Definition at line 99 of file matrixtemplate.hpp.

CMatrix ( const CMatrix< T > &  A)

Definition at line 112 of file matrixtemplate.hpp.

~CMatrix ( )

Definition at line 162 of file matrixtemplate.hpp.


Member Function Documentation

void ErrorHandler ( int  nErrorCode,
int  nR = 0,
int  nC = 0 
) const [private]

Definition at line 396 of file matrixtemplate.hpp.

int GetColumns ( ) const

Definition at line 255 of file matrixtemplate.hpp.

void GetName ( std::string &  szName) const

Definition at line 233 of file matrixtemplate.hpp.

int GetRows ( ) const

Definition at line 244 of file matrixtemplate.hpp.

T & operator() ( int  nR,
int  nC 
)

Definition at line 285 of file matrixtemplate.hpp.

const T & operator() ( int  nR,
int  nC 
) const

Definition at line 307 of file matrixtemplate.hpp.

T & operator= ( const CMatrix< T > &  matarg)

Definition at line 329 of file matrixtemplate.hpp.

int Read ( std::ifstream &  IFile)

Definition at line 359 of file matrixtemplate.hpp.

void Release ( ) [private]

Definition at line 192 of file matrixtemplate.hpp.

void Set ( dV)

Definition at line 266 of file matrixtemplate.hpp.

void SetName ( const std::string &  szName)

Definition at line 222 of file matrixtemplate.hpp.

void SetSize ( int  nR,
int  nC 
)

Definition at line 134 of file matrixtemplate.hpp.


Member Data Documentation

int m_nColumns [private]

Definition at line 27 of file matrixtemplate.hpp.

int m_nRows [private]

Definition at line 26 of file matrixtemplate.hpp.

T** m_pCells [private]

Definition at line 24 of file matrixtemplate.hpp.

std::string m_szName [private]

Definition at line 28 of file matrixtemplate.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines