ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Trk::AlMat::AlMat_row_const Class Reference

#include <AlMat.h>

Collaboration diagram for Trk::AlMat::AlMat_row_const:

Public Member Functions

 AlMat_row_const (const AlMat &, int)
 
const double & operator[] (int) const
 

Private Attributes

const AlMatm_a
 
int m_r
 

Detailed Description

Definition at line 45 of file AlMat.h.

Constructor & Destructor Documentation

◆ AlMat_row_const()

Trk::AlMat::AlMat_row_const::AlMat_row_const ( const AlMat a,
int  r 
)
inline

Definition at line 151 of file AlMat.h.

153  : m_a(a), m_r(r)
154 {}

Member Function Documentation

◆ operator[]()

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

Definition at line 140 of file AlMat.h.

140  {
141  if(m_r<0||m_r>=m_a.nrow() || c<0||c>=m_a.ncol())
142  throw std::out_of_range( "Range error in AlMat::operator[][]" );
143 
144  return *(m_a.m_ptr_data+m_r*m_a.ncol()+c);
145 }

Member Data Documentation

◆ m_a

const AlMat& Trk::AlMat::AlMat_row_const::m_a
private

Definition at line 50 of file AlMat.h.

◆ m_r

int Trk::AlMat::AlMat_row_const::m_r
private

Definition at line 51 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::AlMat_row_const::m_r
int m_r
Definition: AlMat.h:51
Trk::AlMat::ncol
long int ncol() const
Definition: AlMat.h:162
Trk::AlMat::nrow
long int nrow() const
Definition: AlMat.h:157
Trk::AlMat::m_ptr_data
double * m_ptr_data
Definition: AlMat.h:114
a
TList * a
Definition: liststreamerinfos.cxx:10
Trk::AlMat::AlMat_row_const::m_a
const AlMat & m_a
Definition: AlMat.h:50
python.compressB64.c
def c
Definition: compressB64.py:93