Light reference to an object that was registered through rmi_handle. More...
Public Member Functions | |
| light_reference (rmi_handle &h) | |
| light_reference (reference const &h) | |
| constexpr bool | valid (void) const noexcept |
Returns true if this handle is associated with an object. | |
| constexpr internal_handle_type const & | internal_handle (void) const noexcept |
| constexpr epoch_type | get_registration_epoch (void) const noexcept |
| Returns the epoch that the object was registered in. | |
| constexpr epoch_type | get_epoch (void) const noexcept |
| Returns the epoch that the object is currently in. | |
| constexpr gang_id | get_gang_id (void) const noexcept |
| Returns the gang id of the gang this object registered in. | |
| std::string | get_uid (void) const |
| Returns a unique id of the registered object. More... | |
Public Types | |
| using | internal_handle_type = object_virtual_address |
| using | epoch_type = logical_clock::time_type |
Protected Member Functions | |
| void | set_epoch (epoch_type e) noexcept |
| Sets the epoch that the object is currently in. | |
Light reference to an object that was registered through rmi_handle.
It can be constructed from any non-const reference to rmi_handle.
Once an rmi_handle::light_reference is created, one can retrieve a reference to the object, but cannot do an RMI through it.
The size of an rmi_handle::light_reference is smaller than that of a rmi_handle::reference.
|
inherited |
Returns a unique id of the registered object.
1.8.13