| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

MagMat::MagMat_row_const Class Reference

#include <MagMat.h>

Collaboration diagram for MagMat::MagMat_row_const:

[legend]
List of all members.

Public Member Functions

 MagMat_row_const (const MagMat &, int)
const double & operator[] (int) const

Private Attributes

const MagMat_a
int _r

Detailed Description

Definition at line 32 of file MagMat.h.


Constructor & Destructor Documentation

MagMat::MagMat_row_const::MagMat_row_const ( const MagMat ,
int   
) [inline]

Definition at line 131 of file MagMat.h.

00132    : _a(a), _r(r)
00133 {}


Member Function Documentation

const double & MagMat::MagMat_row_const::operator[] ( int   )  const [inline]

Definition at line 116 of file MagMat.h.

00117 {
00118 
00119    if(_r<0||_r>=_a.Nrow || c<0||c>=_a.Ncol)
00120      std::cerr << "Range error in MagMat::operator[][]" << std::endl;
00121    
00122    return *(_a.ptr_data+_r*_a.Ncol+c);
00123  
00124 }


Member Data Documentation

const MagMat& MagMat::MagMat_row_const::_a [private]

Definition at line 37 of file MagMat.h.

int MagMat::MagMat_row_const::_r [private]

Definition at line 38 of file MagMat.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:04:55 2011 for Magnet by doxygen 1.4.7