ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
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 {}

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:
beamspotman.r
def r
Definition: beamspotman.py:676
Trk::AlMat::ncol
long int ncol() const
Definition: AlMat.h:162
Trk::AlMat::AlMat_row::m_a
AlMat & m_a
Definition: AlMat.h:41
Trk::AlMat::nrow
long int nrow() const
Definition: AlMat.h:157
Trk::AlMat::AlMat_row::m_r
int m_r
Definition: AlMat.h:42
Trk::AlMat::m_ptr_data
double * m_ptr_data
Definition: AlMat.h:114
a
TList * a
Definition: liststreamerinfos.cxx:10
python.compressB64.c
def c
Definition: compressB64.py:93