Public Member Functions | Private Member Functions | Private Attributes | List of all members
gnsstk::SMatProxy< T > Class Template Reference

Detailed Description

template<class T>
class gnsstk::SMatProxy< T >

Proxy class for elements of the SparseMatrix (SM).

Definition at line 57 of file SparseMatrix.hpp.

#include <SparseMatrix.hpp>

Public Member Functions

 operator T () const
 cast or implicit conversion More...
 
SMatProxyoperator*= (const SMatProxy< T > &rhs)
 operator*= for non-const (lvalue) More...
 
SMatProxyoperator*= (T rhs)
 operator*= for const (rvalue) More...
 
SMatProxyoperator+= (const SMatProxy< T > &rhs)
 operator+= for non-const (lvalue) More...
 
SMatProxyoperator+= (T rhs)
 operator+= for const (rvalue) More...
 
SMatProxyoperator-= (const SMatProxy< T > &rhs)
 operator-= for non-const (lvalue) More...
 
SMatProxyoperator-= (T rhs)
 operator-= for const (rvalue) More...
 
SMatProxyoperator= (const SMatProxy< T > &rhs)
 operator = for non-const (lvalue) More...
 
SMatProxyoperator= (T rhs)
 operator = for const (rvalue) More...
 
 SMatProxy (SparseMatrix< T > &SM, unsigned int i, unsigned int j)
 constructor More...
 

Private Member Functions

void assign (T rhs)
 assign the SparseMatrix element, used by operator=,+=,etc More...
 
value () const
 get the value of the SparseMatrix at irow,jcol More...
 

Private Attributes

unsigned int irow
 indexes in mySM for this data More...
 
unsigned int jcol
 
SparseMatrix< T > & mySM
 reference to the matrix to which this data belongs More...
 

Constructor & Destructor Documentation

◆ SMatProxy()

template<class T >
gnsstk::SMatProxy< T >::SMatProxy ( SparseMatrix< T > &  SM,
unsigned int  i,
unsigned int  j 
)

constructor

Definition at line 141 of file SparseMatrix.hpp.

Member Function Documentation

◆ assign()

template<class T >
void gnsstk::SMatProxy< T >::assign ( rhs)
private

assign the SparseMatrix element, used by operator=,+=,etc

Definition at line 162 of file SparseMatrix.hpp.

◆ operator T()

template<class T >
gnsstk::SMatProxy< T >::operator T

cast or implicit conversion

Definition at line 197 of file SparseMatrix.hpp.

◆ operator*=() [1/2]

template<class T >
SMatProxy& gnsstk::SMatProxy< T >::operator*= ( const SMatProxy< T > &  rhs)
inline

operator*= for non-const (lvalue)

Definition at line 108 of file SparseMatrix.hpp.

◆ operator*=() [2/2]

template<class T >
SMatProxy& gnsstk::SMatProxy< T >::operator*= ( rhs)
inline

operator*= for const (rvalue)

Definition at line 115 of file SparseMatrix.hpp.

◆ operator+=() [1/2]

template<class T >
SMatProxy& gnsstk::SMatProxy< T >::operator+= ( const SMatProxy< T > &  rhs)
inline

operator+= for non-const (lvalue)

Definition at line 80 of file SparseMatrix.hpp.

◆ operator+=() [2/2]

template<class T >
SMatProxy& gnsstk::SMatProxy< T >::operator+= ( rhs)
inline

operator+= for const (rvalue)

Definition at line 87 of file SparseMatrix.hpp.

◆ operator-=() [1/2]

template<class T >
SMatProxy& gnsstk::SMatProxy< T >::operator-= ( const SMatProxy< T > &  rhs)
inline

operator-= for non-const (lvalue)

Definition at line 94 of file SparseMatrix.hpp.

◆ operator-=() [2/2]

template<class T >
SMatProxy& gnsstk::SMatProxy< T >::operator-= ( rhs)
inline

operator-= for const (rvalue)

Definition at line 101 of file SparseMatrix.hpp.

◆ operator=() [1/2]

template<class T >
SMatProxy& gnsstk::SMatProxy< T >::operator= ( const SMatProxy< T > &  rhs)
inline

operator = for non-const (lvalue)

Definition at line 64 of file SparseMatrix.hpp.

◆ operator=() [2/2]

template<class T >
SMatProxy& gnsstk::SMatProxy< T >::operator= ( rhs)
inline

operator = for const (rvalue)

Definition at line 70 of file SparseMatrix.hpp.

◆ value()

template<class T >
T gnsstk::SMatProxy< T >::value
private

get the value of the SparseMatrix at irow,jcol

Definition at line 148 of file SparseMatrix.hpp.

Member Data Documentation

◆ irow

template<class T >
unsigned int gnsstk::SMatProxy< T >::irow
private

indexes in mySM for this data

Definition at line 126 of file SparseMatrix.hpp.

◆ jcol

template<class T >
unsigned int gnsstk::SMatProxy< T >::jcol
private

Definition at line 126 of file SparseMatrix.hpp.

◆ mySM

template<class T >
SparseMatrix<T>& gnsstk::SMatProxy< T >::mySM
private

reference to the matrix to which this data belongs

Definition at line 123 of file SparseMatrix.hpp.


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


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:46