|  |   Apache Ignite C++
    | 
Mutable representation of CacheEntry class template. More...
#include <mutable_cache_entry.h>
| Public Member Functions | |
| MutableCacheEntry () | |
| Default constructor. | |
| MutableCacheEntry (const K &key) | |
| Constructor for non-existing entry.  More... | |
| MutableCacheEntry (const K &key, const V &val) | |
| Constructor for existing entry.  More... | |
| MutableCacheEntry (const MutableCacheEntry &other) | |
| Copy constructor.  More... | |
| MutableCacheEntry & | operator= (const MutableCacheEntry &other) | 
| Assignment operator.  More... | |
| bool | IsExists () const | 
| Check whether cache entry exists in cache.  More... | |
| void | Remove () | 
| Removes the entry from the Cache. | |
| const K & | GetKey () const | 
| Get key.  More... | |
| const V & | GetValue () const | 
| Get value.  More... | |
| void | SetValue (const V &val) | 
| Sets or replaces the value associated with the key.  More... | |
Mutable representation of CacheEntry class template.
Both key and value types should be default-constructable, copy-constructable and assignable.
Additionally, equality operator should be defined for the value type.
| 
 | inline | 
Constructor for non-existing entry.
| key | Key. | 
| 
 | inline | 
Constructor for existing entry.
| key | Key. | 
| val | Value. | 
| 
 | inline | 
Copy constructor.
| other | Other instance. | 
| 
 | inline | 
Get key.
| 
 | inline | 
Get value.
| 
 | inline | 
Check whether cache entry exists in cache.
| 
 | inline | 
Assignment operator.
| other | Other instance. | 
| 
 | inline | 
Sets or replaces the value associated with the key.
After setter invocation "IsExists" will return true.
| val | Value to set. | 
 1.8.17
 1.8.17