![]() |
Apache Ignite C++
|
Cache entry class template. More...
#include <cache_entry.h>
Public Member Functions | |
| CacheEntry () | |
| Default constructor. More... | |
| CacheEntry (const K &key, const V &val) | |
| Constructor. More... | |
| CacheEntry (const CacheEntry &other) | |
| Copy constructor. More... | |
| CacheEntry (const std::pair< K, V > &p) | |
| Constructor. More... | |
| virtual | ~CacheEntry () |
| Destructor. | |
| CacheEntry & | operator= (const CacheEntry &other) |
| Assignment operator. More... | |
| const K & | GetKey () const |
| Get key. More... | |
| const V & | GetValue () const |
| Get value. More... | |
| bool | HasValue () const |
| Check if the value exists. More... | |
Protected Attributes | |
| K | key |
| Key. | |
| V | val |
| Value. | |
| bool | hasValue |
| Indicates whether value exists. | |
Cache entry class template.
Both key and value types should be default-constructable, copy-constructable and assignable.
|
inline |
Default constructor.
Creates instance with both key and value default-constructed.
|
inline |
Constructor.
| key | Key. |
| val | Value. |
|
inline |
Copy constructor.
| other | Other instance. |
|
inline |
Constructor.
| p | Pair. |
|
inline |
Get key.
|
inline |
Get value.
|
inline |
Check if the value exists.
|
inline |
Assignment operator.
| other | Other instance. |
1.8.17