COPASI API  4.16.103
Public Types | Public Member Functions | Private Attributes | List of all members
CFortranAccess< Matrix > Class Template Reference

#include <CMatrix.h>

Public Types

typedef Matrix::elementType elementType
 

Public Member Functions

 CFortranAccess (Matrix &A)
 
elementTypeoperator() (const size_t &row, const size_t &col)
 
const elementTypeoperator() (const size_t &row, const size_t &col) const
 
elementTypeoperator[] (size_t row)
 
const elementTypeoperator[] (size_t row) const
 
 ~CFortranAccess ()
 

Private Attributes

Matrix & mA
 

Detailed Description

template<class Matrix>
class CFortranAccess< Matrix >

Definition at line 413 of file CMatrix.h.

Member Typedef Documentation

template<class Matrix >
typedef Matrix::elementType CFortranAccess< Matrix >::elementType

Definition at line 416 of file CMatrix.h.

Constructor & Destructor Documentation

template<class Matrix >
CFortranAccess< Matrix >::CFortranAccess ( Matrix &  A)
inline

Definition at line 422 of file CMatrix.h.

422  :
423  mA(A)
424  {}
Matrix & mA
Definition: CMatrix.h:419
template<class Matrix >
CFortranAccess< Matrix >::~CFortranAccess ( )
inline

Definition at line 426 of file CMatrix.h.

426 {}

Member Function Documentation

template<class Matrix >
elementType& CFortranAccess< Matrix >::operator() ( const size_t &  row,
const size_t &  col 
)
inline

Retrieve a matrix element using Fortran style indexing.

Parameters
constsize_t & row
constsize_t & col
Returns
const elementType & element

Definition at line 450 of file CMatrix.h.

References CFortranAccess< Matrix >::mA.

452  {return mA(row - 1, col - 1);}
Matrix & mA
Definition: CMatrix.h:419
template<class Matrix >
const elementType& CFortranAccess< Matrix >::operator() ( const size_t &  row,
const size_t &  col 
) const
inline

Retrieve a matrix element using Fortran style indexing.

Parameters
constsize_t & row
constsize_t & col
Returns
const elementType & element

Definition at line 460 of file CMatrix.h.

References CFortranAccess< Matrix >::mA.

462  {return mA(row - 1, col - 1);}
Matrix & mA
Definition: CMatrix.h:419
template<class Matrix >
elementType* CFortranAccess< Matrix >::operator[] ( size_t  row)
inline

Retrieve a row of the matrix using Fortran style indexing.

Parameters
size_trow
Returns
elementType * row

Definition at line 433 of file CMatrix.h.

References CFortranAccess< Matrix >::mA.

434  {return mA[row - 1] - 1;}
Matrix & mA
Definition: CMatrix.h:419
template<class Matrix >
const elementType* CFortranAccess< Matrix >::operator[] ( size_t  row) const
inline

Retrieve a row of the matrix using Fortran style indexing.

Parameters
size_trow
Returns
const elementType * row

Definition at line 441 of file CMatrix.h.

References CFortranAccess< Matrix >::mA.

442  {return mA[row - 1] - 1;}
Matrix & mA
Definition: CMatrix.h:419

Member Data Documentation

template<class Matrix >
Matrix& CFortranAccess< Matrix >::mA
private

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