class Link

Defined at line 48 of file ../../src/ui/scenic/lib/utils/object_linker.h

Protected Members

Public Methods

void ~Link ()

Defined at line 50 of file ../../src/ui/scenic/lib/utils/object_linker.h

Protected Methods

void Invalidate (bool on_destruction, bool invalidate_peer)

When invalidating a link, the caller may choose to not invalidate the peer, which instead

returns the peer to an initialized-but-unresolved state. This is primarily used when the

caller releases the token of an existing link.

void LinkResolved (ObjectLinkerBase::Link * peer_link)

Must be virtual so ObjectLinker::Link can pull the typed PeerObject from `peer_link`.

void LinkInvalidatedLocked (bool on_destruction)

Invalidating a link deletes the token it was created with, making the link permanently

invalid and therefore allowing for the deletion of the |link_invalidated_| callback.

Unresolving a link means its peer's token was released and may be used again, so the callback

is called but not deleted.

Defined at line 19 of file ../../src/ui/scenic/lib/utils/object_linker.cc

void LinkUnresolvedLocked ()

Defined at line 29 of file ../../src/ui/scenic/lib/utils/object_linker.cc

Friends

class ObjectLinkerBase