|
class | generation |
|
class | base_control |
|
◆ get_control()
Read the target control block.
- Returns
- The target control block of this vertex.
◆ reset()
auto cycle_ptr::detail::vertex::reset |
( |
intrusive_ptr< base_control > |
new_dst, |
|
|
bool |
has_reference, |
|
|
bool |
no_red_promotion |
|
) |
| -> void |
|
protected |
Assign a new new_dst
.
Assigns new_dst
as the pointee of this vertex.
- Parameters
-
new_dst | The destination of the edge. May be null. |
has_reference | If set, new_dst has a reference count that will be consumed. (Ignored for null new_dst.) |
no_red_promotion | If set, caller guarantees no red promotion is required. Note that this must be set, if has_reference is set. (Ignored for null new_dst.) |
◆ throw_if_owner_expired()
auto cycle_ptr::detail::vertex::throw_if_owner_expired |
( |
| ) |
const -> void |
|
inlineprotected |
Throw exception if owner is expired.
It is not allowed to read member pointers from an expired object.
- Todo:
- Create dedicated exception for this case.
The documentation for this class was generated from the following file: