ATLAS Offline Software
Loading...
Searching...
No Matches
Trk::AlMat::AlMat_row Class Reference

#include <AlMat.h>

Collaboration diagram for Trk::AlMat::AlMat_row:

Public Member Functions

 AlMat_row (AlMat &, int)
double & operator[] (int)

Private Attributes

AlMatm_a
int m_r

Detailed Description

Definition at line 36 of file AlMat.h.

Constructor & Destructor Documentation

◆ AlMat_row()

Trk::AlMat::AlMat_row::AlMat_row ( AlMat & a,
int r )
inline

Definition at line 147 of file AlMat.h.

148 : m_a(a), m_r(r)
149{}
static Double_t a
int r
Definition globals.cxx:22

Member Function Documentation

◆ operator[]()

double & Trk::AlMat::AlMat_row::operator[] ( int c)
inline

Definition at line 133 of file AlMat.h.

133 {
134 if(m_r<0||m_r>=m_a.nrow() || c<0||c>=m_a.ncol())
135 throw std::out_of_range( "Range error in AlMat::operator[][]" );
136
137 return *(m_a.m_ptr_data+m_r*m_a.ncol()+c);
138}

Member Data Documentation

◆ m_a

AlMat& Trk::AlMat::AlMat_row::m_a
private

Definition at line 41 of file AlMat.h.

◆ m_r

int Trk::AlMat::AlMat_row::m_r
private

Definition at line 42 of file AlMat.h.


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