载入中...
搜索中...
未找到
eve::authority::Authority类 参考

Script module factory for generic authority stores. 更多...

#include <Authority.h>

类 eve::authority::Authority 继承关系图:
eve::Module

Public 成员函数

 Module_REG (Authority)
 
 Authority ()=default
 Constructs a Authority.
 
 ~Authority () override=default
 Releases Authority resources.
 
- Public 成员函数 继承自 eve::Module
virtual ~Module ()
 Module.
 
virtual std::string getName () const =0
 Returns the name.
 

静态 Public 成员函数

static eve::Result< AuthorityStoreHandleRef > newStore ()
 Allocates an authority store and returns its ownership reference.
 
static eve::script::Borrowed< Store > resolve (AuthorityStoreHandleRef reference) noexcept
 Resolves a live store as a non-owning observation.
 
static eve::Result< void > release (AuthorityStoreHandleRef reference)
 Releases a module-owned store.
 
static bool isStale (AuthorityStoreHandleRef reference) noexcept
 Reports whether a store reference is stale for the current module.
 

详细描述

Script module factory for generic authority stores.

在文件 Authority.h 第 176 行定义.

构造及析构函数说明

◆ Authority()

eve::authority::Authority::Authority ( )
default

Constructs a Authority.

◆ ~Authority()

eve::authority::Authority::~Authority ( )
overridedefault

Releases Authority resources.

成员函数说明

◆ isStale()

bool eve::authority::Authority::isStale ( AuthorityStoreHandleRef  reference)
staticnoexcept

Reports whether a store reference is stale for the current module.

在文件 Authority.cpp 第 415 行定义.

引用了 eve::script::RuntimeHandleRef< Tag >::isValid() , 以及 reference.

◆ Module_REG()

eve::authority::Authority::Module_REG ( Authority  )

◆ newStore()

eve::Result< AuthorityStoreHandleRef > eve::authority::Authority::newStore ( )
static

Allocates an authority store and returns its ownership reference.

返回
A generation-qualified reference; the current Authority module owns the store.
备注
The reference becomes stale after release, module unload, or reload.

在文件 Authority.cpp 第 395 行定义.

◆ release()

eve::Result< void > eve::authority::Authority::release ( AuthorityStoreHandleRef  reference)
static

Releases a module-owned store.

在文件 Authority.cpp 第 406 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure() , 以及 eve::StaleHandle.

◆ resolve()

eve::script::Borrowed< Store > eve::authority::Authority::resolve ( AuthorityStoreHandleRef  reference)
staticnoexcept

Resolves a live store as a non-owning observation.

在文件 Authority.cpp 第 400 行定义.


该类的文档由以下文件生成: