#include <Active_Map_Manager.h>
Collaboration diagram for ACE_Active_Map_Manager_Key:
Public Member Functions | |
ACE_Active_Map_Manager_Key (void) | |
Default constructor. | |
ACE_Active_Map_Manager_Key (ACE_UINT32 slot_index, ACE_UINT32 slot_generation) | |
ACE_UINT32 | slot_index (void) const |
Get the <slot_index>. | |
void | slot_index (ACE_UINT32 i) |
Set the <slot_index>. | |
ACE_UINT32 | slot_generation (void) const |
Get the <slot_generation> number. | |
void | slot_generation (ACE_UINT32 g) |
Set the <slot_generation> number. | |
void | decode (const void *data) |
void | encode (void *data) const |
bool | operator== (const ACE_Active_Map_Manager_Key &rhs) const |
Compare keys. | |
bool | operator!= (const ACE_Active_Map_Manager_Key &rhs) const |
void | increment_slot_generation_count (void) |
Increment the <slot_generation> number. | |
Static Public Member Functions | |
size_t | size (void) |
Size required to store information about active key. | |
Private Attributes | |
key_data | key_data_ |
Data for the Active Object Map Key. |
This key keeps information of the index and the generation count of the slot it represents. Since the index information is part of the key, lookups are super fast and predictable,
|
Default constructor.
|
|
Constructor given the slot_index and slot_generation number. This is useful once the user has somehow recovered the slot_index and slot_generation number from the client. |
|
Recover state of active key from data. User must make sure that data encoded using the encode() method. |
|
Encode state of the active key into data. data must be as big as the value returned from <size>. |
|
Increment the <slot_generation> number.
|
|
|
|
Compare keys.
|
|
Size required to store information about active key.
|
|
Set the <slot_generation> number.
|
|
Get the <slot_generation> number.
|
|
Set the <slot_index>.
|
|
Get the <slot_index>.
|
|
Data for the Active Object Map Key.
|