载入中...
搜索中...
未找到

Stable definition reference backed by LogicalId. 更多...

#include <ResourceRef.h>

Public 成员函数

 DefinitionRef ()=default
 Constructs an invalid reference for optional/component storage.
 
const LogicalId & id () const noexcept
 Return the stable logical definition identity.
 
const std::string & format () const noexcept
 Return canonical namespace:name text.
 

静态 Public 成员函数

static Result< DefinitionRef > parse (std::string_view text)
 Parse a namespace:name logical definition identifier.
 
static Result< DefinitionRef > fromId (LogicalId id)
 Build a definition reference from a valid LogicalId.
 

友元

bool operator== (const DefinitionRef &, const DefinitionRef &) noexcept=default
 Compare definition references by logical identity.
 

详细描述

Stable definition reference backed by LogicalId.

A DefinitionRef names a definition (namespace:name); it is not a resource locator and therefore is intentionally not accepted as a ResourceUri.

在文件 ResourceRef.h 第 85 行定义.

构造及析构函数说明

◆ DefinitionRef()

eve::DefinitionRef::DefinitionRef ( )
default

Constructs an invalid reference for optional/component storage.

被这些函数引用 fromId() , 以及 parse().

成员函数说明

◆ format()

const std::string & eve::DefinitionRef::format ( ) const
inlinenoexcept

Return canonical namespace:name text.

在文件 ResourceRef.h 第 100 行定义.

◆ fromId()

Result< DefinitionRef > eve::DefinitionRef::fromId ( LogicalId  id)
static

◆ id()

◆ parse()

Result< DefinitionRef > eve::DefinitionRef::parse ( std::string_view  text)
static

Parse a namespace:name logical definition identifier.

在文件 ResourceRef.cpp 第 44 行定义.

引用了 DefinitionRef(), eve::LogicalId::parse(), eve::Result< T >::success() , 以及 text.

被这些函数引用 eve::production::WorkQueue::restore() , 以及 eve::definition::restoreRuntimeInstance().

友元及相关函数文档

◆ operator==

bool operator== ( const DefinitionRef &  ,
const DefinitionRef &   
)
friend

Compare definition references by logical identity.


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