![]() |
MDBX Containers
|
Helper proxy for convenient assignment via operator[]. More...
#include <KeyValueTable.hpp>
Public Member Functions | |
AssignmentProxy (KeyValueTable &db, KeyT key) | |
Constructs the proxy for a specific key. | |
AssignmentProxy & | operator= (const ValueT &value) |
Assigns a value to the stored key. | |
operator ValueT () const | |
Implicit conversion to the value type. | |
Private Attributes | |
KeyValueTable & | m_db |
Reference to the owning table. | |
KeyT | m_key |
Key associated with this proxy. | |
Helper proxy for convenient assignment via operator[].
Definition at line 102 of file KeyValueTable.hpp.
|
inline |
Constructs the proxy for a specific key.
db | Reference to the owning table. |
key | Key associated with this proxy. |
Definition at line 107 of file KeyValueTable.hpp.
|
inline |
Implicit conversion to the value type.
If the key does not exist, a default-constructed value is inserted.
Definition at line 120 of file KeyValueTable.hpp.
|
inline |
Assigns a value to the stored key.
value | Value to store. |
Definition at line 113 of file KeyValueTable.hpp.
|
private |
Reference to the owning table.
Definition at line 129 of file KeyValueTable.hpp.
|
private |
Key associated with this proxy.
Definition at line 130 of file KeyValueTable.hpp.