载入中...
搜索中...
未找到
eve::script::BorrowedSquirrelObject类 参考
Borrowed view of a rooted Squirrel object for one synchronous call. 更多...
#include <SquirrelOwnership.h>
Public 成员函数 | |
| constexpr | BorrowedSquirrelObject () noexcept=default |
| Borrowed squirrel object. | |
| constexpr | BorrowedSquirrelObject (const ssq::Object *object) noexcept |
| Borrowed squirrel object. | |
| constexpr const ssq::Object * | get () const noexcept |
Returns the borrowed object, or nullptr when unbound. | |
| bool | isBound () const noexcept |
| Returns whether the view is bound to a non-empty object. | |
详细描述
Borrowed view of a rooted Squirrel object for one synchronous call.
Copying this wrapper does not add a VM reference. Use ownSquirrelObject() when the object must survive the current call or be stored by a registry.
在文件 SquirrelOwnership.h 第 71 行定义.
构造及析构函数说明
◆ BorrowedSquirrelObject() [1/2]
|
constexprdefaultnoexcept |
Borrowed squirrel object.
◆ BorrowedSquirrelObject() [2/2]
|
inlineexplicitconstexprnoexcept |
Borrowed squirrel object.
在文件 SquirrelOwnership.h 第 76 行定义.
成员函数说明
◆ get()
|
inlineconstexprnoexcept |
Returns the borrowed object, or nullptr when unbound.
- 返回
- A nullable borrowed pointer valid only for the synchronous call. @ownership Borrowed from the Squirrel VM/root owner; this view never adds a VM reference and the caller must not delete the object. @nullable Yes, for an empty view. @lifetime Valid until the current native call ends or the rooted owner is invalidated; use ownSquirrelObject() to extend it explicitly. @thread The VM's owning thread only. @reentrancy Does not retain or invoke Squirrel callbacks.
在文件 SquirrelOwnership.h 第 89 行定义.
◆ isBound()
|
inlinenoexcept |
Returns whether the view is bound to a non-empty object.
在文件 SquirrelOwnership.h 第 91 行定义.
该类的文档由以下文件生成:
- src/engine/common/SquirrelOwnership.h