template <typename OwnableT, typename TypeInfoT>

class Owner

Defined at line 19 of file ../../src/ui/lib/escher/base/owner.h

Subclasses of Owner manage the lifecycle of Ownable objects. When the

ref-count of an Ownable reaches zero, Owner::ReceiveOwnable() is invoked;

the Owner is then responsible for deciding whether to destroy it, recycle it,

etc. The Owner may only own Ownables that are parameterized with the same

TypeInfoT type.

Public Methods

void ~Owner<OwnableT, TypeInfoT> ()

Defined at line 21 of file ../../src/ui/lib/escher/base/owner.h

uint32_t ownable_count ()

Return the number of Ownables currently owned by this owner. Must be

zero when the Owner is destroyed.

Defined at line 25 of file ../../src/ui/lib/escher/base/owner.h

Protected Methods

void BecomeOwnerOf (OwnableT * ownable)

Allow subclasses of Owner to take ownership of |unowned_ownable|, which

must not already have an owner.

Defined at line 30 of file ../../src/ui/lib/escher/base/owner.h

void RelinquishOwnershipOf (OwnableT * ownable)

Allow subclasses of Owner to relinquish ownership of |ownable|; afterward,

it is safe for |ownable| to be destroyed. This must not be called if

this Owner does not own |ownable|.

Defined at line 39 of file ../../src/ui/lib/escher/base/owner.h