ATLAS Offline Software
Loading...
Searching...
No Matches
Trk::AlSymMatBase::AlSymMatBase_row Class Reference

#include <AlSymMatBase.h>

Collaboration diagram for Trk::AlSymMatBase::AlSymMatBase_row:

Public Member Functions

 AlSymMatBase_row (AlSymMatBase &, long int)
double & operator[] (long int)

Private Attributes

AlSymMatBasem_a
long int m_r

Detailed Description

Definition at line 44 of file AlSymMatBase.h.

Constructor & Destructor Documentation

◆ AlSymMatBase_row()

Trk::AlSymMatBase::AlSymMatBase_row::AlSymMatBase_row ( AlSymMatBase & a,
long int r )
inline

Definition at line 135 of file AlSymMatBase.h.

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

Member Function Documentation

◆ operator[]()

double & Trk::AlSymMatBase::AlSymMatBase_row::operator[] ( long int c)
inline

Definition at line 119 of file AlSymMatBase.h.

119 {
120 if(m_r<0||m_r>=m_a.nrow() || c<0||c>=m_a.ncol()) {
121 throw std::out_of_range( "Range error in AlSymMatBase::operator[][]" );
122 } else {
123 return m_a.elemr(m_r,c);
124 }
125}

Member Data Documentation

◆ m_a

AlSymMatBase& Trk::AlSymMatBase::AlSymMatBase_row::m_a
private

Definition at line 49 of file AlSymMatBase.h.

◆ m_r

long int Trk::AlSymMatBase::AlSymMatBase_row::m_r
private

Definition at line 50 of file AlSymMatBase.h.


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