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... | |
SVecProxy & | operator*= (const SVecProxy< T > &rhs) |
operator*= for non-const (lvalue) More... | |
SVecProxy & | operator*= (T rhs) |
operator*= for const (rvalue) More... | |
SVecProxy & | operator+= (const SVecProxy< T > &rhs) |
operator+= for non-const (lvalue) More... | |
SVecProxy & | operator+= (T rhs) |
operator+= for const (rvalue) More... | |
SVecProxy & | operator-= (const SVecProxy< T > &rhs) |
operator-= for non-const (lvalue) More... | |
SVecProxy & | operator-= (T rhs) |
operator-= for const (rvalue) More... | |
SVecProxy & | operator= (const SVecProxy< T > &rhs) |
operator = for non-const (lvalue) More... | |
SVecProxy & | operator= (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... | |
T | 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... | |
gnsstk::SVecProxy< T >::SVecProxy | ( | SparseVector< T > & | SV, |
unsigned int | index | ||
) |
constructor
Definition at line 534 of file SparseVector.hpp.
|
private |
assign the SparseVector element, used by operator=,+=,etc
Definition at line 553 of file SparseVector.hpp.
gnsstk::SVecProxy< T >::operator T |
cast or implicit conversion
Definition at line 575 of file SparseVector.hpp.
|
inline |
operator*= for non-const (lvalue)
Definition at line 119 of file SparseVector.hpp.
|
inline |
operator*= for const (rvalue)
Definition at line 126 of file SparseVector.hpp.
|
inline |
operator+= for non-const (lvalue)
Definition at line 91 of file SparseVector.hpp.
|
inline |
operator+= for const (rvalue)
Definition at line 98 of file SparseVector.hpp.
|
inline |
operator-= for non-const (lvalue)
Definition at line 105 of file SparseVector.hpp.
|
inline |
operator-= for const (rvalue)
Definition at line 112 of file SparseVector.hpp.
|
inline |
operator = for non-const (lvalue)
Definition at line 75 of file SparseVector.hpp.
|
inline |
operator = for const (rvalue)
Definition at line 81 of file SparseVector.hpp.
|
private |
get the value of the SparseVector at index
Definition at line 541 of file SparseVector.hpp.
|
private |
index in mySV for this data
Definition at line 137 of file SparseVector.hpp.
|
private |
reference to the vector to which this data belongs
Definition at line 134 of file SparseVector.hpp.