ATLAS Offline Software
Loading...
Searching...
No Matches
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{}
static Double_t a
const AlMat & m_a
Definition AlMat.h:50
int r
Definition globals.cxx:22

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: