|
LocARNA-2.0.0
|
Proxy for element of sparse vector. More...
#include <sparse_vector_base.hh>
Public Member Functions | |
| element_proxy (derived_type *v, key_type k) | |
| Construct as proxy for specified element in given sparse vector. More... | |
| operator value_type () | |
| Access entry for which the class acts as proxy. More... | |
| element_proxy | operator+= (const value_type &x) |
| Operator for in place addition. More... | |
| element_proxy & | operator= (const value_type &x) |
| Assignment operator. More... | |
Proxy for element of sparse vector.
Proxy for sparse vector entries. This is required for non-const access to vector elements in order to provide a very similar syntax for the sparse data structure and the corresponding non-sparse vector.
|
inline |
Construct as proxy for specified element in given sparse vector.
| m | pointer to sparse vector |
| k | key/index of entry in given sparse vector |
|
inline |
Access entry for which the class acts as proxy.
If entry does not exist, return the default value
|
inline |
Operator for in place addition.
| x | value |
|
inline |
Assignment operator.
| x | value |