![]() |
GridGain C++
|
Cache entry event class template. More...
#include <cache_entry_event.h>
Public Member Functions | |
CacheEntryEvent () | |
Default constructor. More... | |
CacheEntryEvent (const CacheEntryEvent< K, V > &other) | |
Copy constructor. More... | |
virtual | ~CacheEntryEvent () |
Destructor. | |
CacheEntryEvent & | operator= (const CacheEntryEvent< K, V > &other) |
Assignment operator. More... | |
const V & | GetOldValue () const |
Get old value. More... | |
bool | HasOldValue () const |
Check if the old value exists. More... | |
CacheEntryEventType::T | GetEventType () const |
Get event type. More... | |
void | Read (binary::BinaryRawReader &reader) |
Reads cache event using provided raw reader. More... | |
![]() | |
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... | |
Additional Inherited Members | |
![]() | |
K | key |
Key. | |
V | val |
Value. | |
bool | hasValue |
Indicates whether value exists. | |
Cache entry event class template.
Both key and value types should be default-constructable, copy-constructable and assignable.
|
inline |
Default constructor.
Creates instance with all fields default-constructed.
|
inline |
Copy constructor.
other | Other instance. |
|
inline |
Get event type.
|
inline |
Get old value.
|
inline |
Check if the old value exists.
|
inline |
Assignment operator.
other | Other instance. |
|
inline |
Reads cache event using provided raw reader.
reader | Reader to use. |