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

Detailed Description

template<class T>
class gnsstk::SVecProxy< T >

Proxy class for elements of the SparseVector (SV). This allows disparate treatment of rvalues and lvalues.

Definition at line 68 of file SparseVector.hpp.

#include <SparseVector.hpp>

Public Member Functions

 operator T () const
 cast or implicit conversion More...
 
SVecProxyoperator*= (const SVecProxy< T > &rhs)
 operator*= for non-const (lvalue) More...
 
SVecProxyoperator*= (T rhs)
 operator*= for const (rvalue) More...
 
SVecProxyoperator+= (const SVecProxy< T > &rhs)
 operator+= for non-const (lvalue) More...
 
SVecProxyoperator+= (T rhs)
 operator+= for const (rvalue) More...
 
SVecProxyoperator-= (const SVecProxy< T > &rhs)
 operator-= for non-const (lvalue) More...
 
SVecProxyoperator-= (T rhs)
 operator-= for const (rvalue) More...
 
SVecProxyoperator= (const SVecProxy< T > &rhs)
 operator = for non-const (lvalue) More...
 
SVecProxyoperator= (T rhs)
 operator = for const (rvalue) More...
 
 SVecProxy (SparseVector< T > &SV, unsigned int index)
 constructor More...
 

Private Member Functions

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

Private Attributes

unsigned int index
 index in mySV for this data More...
 
SparseVector< T > & mySV
 reference to the vector to which this data belongs More...
 

Constructor & Destructor Documentation

◆ SVecProxy()

template<class T >
gnsstk::SVecProxy< T >::SVecProxy ( SparseVector< T > &  SV,
unsigned int  index 
)

constructor

Definition at line 534 of file SparseVector.hpp.

Member Function Documentation

◆ assign()

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

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

Definition at line 553 of file SparseVector.hpp.

◆ operator T()

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

cast or implicit conversion

Definition at line 575 of file SparseVector.hpp.

◆ operator*=() [1/2]

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

operator*= for non-const (lvalue)

Definition at line 119 of file SparseVector.hpp.

◆ operator*=() [2/2]

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

operator*= for const (rvalue)

Definition at line 126 of file SparseVector.hpp.

◆ operator+=() [1/2]

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

operator+= for non-const (lvalue)

Definition at line 91 of file SparseVector.hpp.

◆ operator+=() [2/2]

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

operator+= for const (rvalue)

Definition at line 98 of file SparseVector.hpp.

◆ operator-=() [1/2]

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

operator-= for non-const (lvalue)

Definition at line 105 of file SparseVector.hpp.

◆ operator-=() [2/2]

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

operator-= for const (rvalue)

Definition at line 112 of file SparseVector.hpp.

◆ operator=() [1/2]

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

operator = for non-const (lvalue)

Definition at line 75 of file SparseVector.hpp.

◆ operator=() [2/2]

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

operator = for const (rvalue)

Definition at line 81 of file SparseVector.hpp.

◆ value()

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

get the value of the SparseVector at index

Definition at line 541 of file SparseVector.hpp.

Member Data Documentation

◆ index

template<class T >
unsigned int gnsstk::SVecProxy< T >::index
private

index in mySV for this data

Definition at line 137 of file SparseVector.hpp.

◆ mySV

template<class T >
SparseVector<T>& gnsstk::SVecProxy< T >::mySV
private

reference to the vector to which this data belongs

Definition at line 134 of file SparseVector.hpp.


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


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