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

Stable world/object identity backed by PersistentId. 更多...

#include <ResourceRef.h>

Public 成员函数

const PersistentId & id () const noexcept
 Return the stable object identity.
 
std::string format () const
 Return canonical UUID text without a resource URI scheme.
 

静态 Public 成员函数

static Result< ObjectRef > parse (std::string_view text)
 Parse a canonical UUID text as an object reference.
 
static Result< ObjectRef > fromId (PersistentId id)
 Build an object reference from a non-nil persistent identity.
 

友元

bool operator== (const ObjectRef &, const ObjectRef &) noexcept=default
 Compare object references by persistent identity.
 

详细描述

Stable world/object identity backed by PersistentId.

ObjectRef is deliberately distinct from AssetRef even though both use the same underlying UUID representation. It is not a filesystem URI.

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

成员函数说明

◆ format()

std::string eve::ObjectRef::format ( ) const
inline

Return canonical UUID text without a resource URI scheme.

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

◆ fromId()

Result< ObjectRef > eve::ObjectRef::fromId ( PersistentId  id)
static

Build an object reference from a non-nil persistent identity.

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

引用了 eve::Result< T >::success().

◆ id()

const PersistentId & eve::ObjectRef::id ( ) const
inlinenoexcept

Return the stable object identity.

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

◆ parse()

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

Parse a canonical UUID text as an object reference.

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

引用了 eve::detail::Id128< Tag >::parse(), eve::Result< T >::success() , 以及 text.

友元及相关函数文档

◆ operator==

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

Compare object references by persistent identity.


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