G4ErrorSymMatrix::G4ErrorSymMatrix_row_const Class Reference

#include <G4ErrorSymMatrix.hh>


Public Member Functions

 G4ErrorSymMatrix_row_const (const G4ErrorSymMatrix &, G4int)
const G4doubleoperator[] (G4int) const


Detailed Description

Definition at line 151 of file G4ErrorSymMatrix.hh.


Constructor & Destructor Documentation

G4ErrorSymMatrix::G4ErrorSymMatrix_row_const::G4ErrorSymMatrix_row_const ( const G4ErrorSymMatrix ,
G4int   
) [inline]

Definition at line 131 of file G4ErrorSymMatrix.icc.

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


Member Function Documentation

const G4double & G4ErrorSymMatrix::G4ErrorSymMatrix_row_const::operator[] ( G4int   )  const [inline]

Definition at line 112 of file G4ErrorSymMatrix.icc.

References G4ErrorSymMatrix::m.

00113 {
00114    if (_r >= c )
00115    {
00116       return *(_a.m.begin() + (_r+1)*_r/2 + c);
00117    }
00118    else
00119    {
00120       return *(_a.m.begin() + (c+1)*c/2 + _r);
00121    }
00122 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:51:55 2013 for Geant4 by  doxygen 1.4.7