|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
The entry of a key, as v[k] gives it: reads and assigns it.
More...
#include <al-vector.H>
Public Member Functions | |
| Proxy (Vector &v, const T &k) | |
The entry of k in v. | |
| Proxy (const Proxy &)=default | |
| Another proxy of the same entry. | |
| Proxy & | operator= (const Proxy &proxy) |
Assign the value of the entry of proxy, zero included. | |
| Proxy & | operator= (const NumType &item) |
Assign item; a value within epsilon of zero removes the entry. | |
| operator NumType () const noexcept | |
| The value of the entry: 0 if it has none. | |
Private Attributes | |
| Vector * | v_ptr = nullptr |
| T | key |
The entry of a key, as v[k] gives it: reads and assigns it.
It keeps its own copy of the key and finds the entry each time it is read or assigned, so that it outlives a temporary key, and an insertion that moves the entries, as when the table grows. A value within epsilon of zero removes the entry, as set_entry() does.
Definition at line 794 of file al-vector.H.
|
inline |
The entry of k in v.
Definition at line 801 of file al-vector.H.
|
default |
Another proxy of the same entry.
|
inlinenoexcept |
The value of the entry: 0 if it has none.
Definition at line 834 of file al-vector.H.
|
inline |
Assign item; a value within epsilon of zero removes the entry.
Definition at line 820 of file al-vector.H.
References Aleph::FunctionalMixin< Vector< T, NumType >, std::pair< T, NumType > >::and, Aleph::Vector< T, NumType >::domain_ptr, Aleph::Vector< T, NumType >::entries, Aleph::Vector< T, NumType >::insert_or_remove_entry(), Aleph::Vector< T, NumType >::is_zero(), Aleph::Vector< T, NumType >::Proxy::key, and Aleph::Vector< T, NumType >::Proxy::v_ptr.
|
inline |
Assign the value of the entry of proxy, zero included.
Definition at line 811 of file al-vector.H.
References Aleph::Vector< T, NumType >::Proxy::key, Aleph::Vector< T, NumType >::set_entry(), Aleph::Vector< T, NumType >::Proxy::v_ptr, and value.
|
private |
Definition at line 797 of file al-vector.H.
Referenced by Aleph::Vector< char, int >::Proxy::operator int(), Aleph::Vector< T, NumType >::Proxy::operator=(), and Aleph::Vector< T, NumType >::Proxy::operator=().
|
private |
Definition at line 796 of file al-vector.H.
Referenced by Aleph::Vector< T, NumType >::Proxy::operator=(), and Aleph::Vector< T, NumType >::Proxy::operator=().