载入中...
搜索中...
未找到
eve::physics::IAcceleratorBackendProvider类 参考abstract
Optional provider that creates an accelerator backend for domain state. 更多...
#include <SimulationBackend.h>
Public 成员函数 | |
| virtual | ~IAcceleratorBackendProvider ()=default |
| Releases the provider; it does not own the domain state. | |
| virtual bool | supports (SimulationBackendDomain domain) const noexcept=0 |
| Reports whether this provider implements a domain. | |
| virtual eve::Result< std::unique_ptr< ISimulationBackend > > | create (SimulationBackendDomain domain, void *state)=0 |
| Creates an accelerator backend for a borrowed domain state. | |
静态 Public 属性 | |
| static constexpr const char * | capabilityName = "eve.physics.IAcceleratorBackendProvider" |
详细描述
Optional provider that creates an accelerator backend for domain state.
The capability is intentionally not required by physics. state is an opaque borrowed pointer valid for the duration of create; a successful backend must retain only state whose lifetime is guaranteed by its owner. Providers must return Unsupported when a domain is not implemented.
在文件 SimulationBackend.h 第 216 行定义.
构造及析构函数说明
◆ ~IAcceleratorBackendProvider()
|
virtualdefault |
Releases the provider; it does not own the domain state.
成员函数说明
◆ create()
|
pure virtual |
Creates an accelerator backend for a borrowed domain state.
- 参数
-
domain Domain kind requested by the owner. state Opaque domain state, valid only under the documented owner lifetime.
- 返回
- A backend or a structured Unsupported/Failed status.
◆ supports()
|
pure virtualnoexcept |
Reports whether this provider implements a domain.
- 参数
-
domain Domain kind being queried.
- 返回
- true only when create() can service the domain.
类成员变量说明
◆ capabilityName
|
staticconstexpr |
在文件 SimulationBackend.h 第 218 行定义.
该类的文档由以下文件生成:
- src/modules/physics/backend/SimulationBackend.h