Owning lease that keeps a shared_ptr provider alive while borrowed.
更多...
#include <CapabilityOwned.h>
Public 成员函数 | |
| OwnedProviderLease ()=default | |
| OwnedProviderLease (const OwnedProviderLease &other)=default | |
Share the provider and its generation identity with other. | |
| OwnedProviderLease & | operator= (const OwnedProviderLease &other)=default |
Share other, releasing this lease's previous ownership. | |
| OwnedProviderLease (OwnedProviderLease &&other) noexcept | |
Transfer ownership and identity, leaving other empty with generation zero. | |
| OwnedProviderLease & | operator= (OwnedProviderLease &&other) noexcept |
Transfer other and empty it; self-move preserves this lease. | |
| const OwnedProviderHandle & | handle () const noexcept |
| operator bool () const noexcept | |
| I * | get () const noexcept |
| Borrowed interface pointer valid while this lease remains alive. | |
| I & | operator* () const noexcept |
| I * | operator-> () const noexcept |
友元 | |
| template<class > | |
| class | OwnedProviderRegistry |
详细描述
class eve::cap::OwnedProviderLease< I >
Owning lease that keeps a shared_ptr provider alive while borrowed.
@ownership Shared with the registry until unload completes; the lease prolongs lifetime. @lifetime Valid until destroyed; do not retain the raw get() pointer after the lease ends. @thread Acquire under the registry lock; subsequent get() is a local shared_ptr read.
在文件 CapabilityOwned.h 第 38 行定义.
构造及析构函数说明
◆ OwnedProviderLease() [1/3]
|
default |
◆ OwnedProviderLease() [2/3]
|
default |
Share the provider and its generation identity with other.
◆ OwnedProviderLease() [3/3]
|
inlinenoexcept |
Transfer ownership and identity, leaving other empty with generation zero.
在文件 CapabilityOwned.h 第 47 行定义.
成员函数说明
◆ get()
|
inlinenoexcept |
Borrowed interface pointer valid while this lease remains alive.
在文件 CapabilityOwned.h 第 61 行定义.
◆ handle()
|
inlinenoexcept |
在文件 CapabilityOwned.h 第 58 行定义.
◆ operator bool()
|
inlineexplicitnoexcept |
在文件 CapabilityOwned.h 第 59 行定义.
◆ operator*()
|
inlinenoexcept |
在文件 CapabilityOwned.h 第 62 行定义.
◆ operator->()
|
inlinenoexcept |
在文件 CapabilityOwned.h 第 63 行定义.
◆ operator=() [1/2]
|
default |
Share other, releasing this lease's previous ownership.
- 返回
- This lease.
◆ operator=() [2/2]
|
inlinenoexcept |
Transfer other and empty it; self-move preserves this lease.
- 返回
- This lease.
在文件 CapabilityOwned.h 第 50 行定义.
友元及相关函数文档
◆ OwnedProviderRegistry
在文件 CapabilityOwned.h 第 67 行定义.
该类的文档由以下文件生成:
- src/engine/common/CapabilityOwned.h