载入中...
搜索中...
未找到
eve::detail 命名空间参考

类

struct  ArtifactIdTag
 ArtifactIdTag public API. 更多...
 
struct  AssetGuidTag
 AssetGuidTag public API. 更多...
 
struct  CommandIdTag
 CommandIdTag public API. 更多...
 
struct  ContentIdTag
 ContentIdTag public API. 更多...
 
struct  DocumentIdTag
 DocumentIdTag public API. 更多...
 
struct  EffectIdTag
 EffectIdTag public API. 更多...
 
struct  EventIdTag
 EventIdTag public API. 更多...
 
class  EventLogValidator
 Incremental validator for the retained event log of a registry image. 更多...
 
struct  EventSequenceTag
 EventSequenceTag public API. 更多...
 
struct  FrameIndexTag
 FrameIndexTag public API. 更多...
 
struct  GenerationTag
 GenerationTag public API. 更多...
 
struct  HandleCoordinates
 Tag-free slot coordinates behind every RuntimeHandle<Tag>. 更多...
 
class  Id128
 Id128 public API. 更多...
 
struct  OperationIdTag
 OperationIdTag public API. 更多...
 
struct  PersistentIdTag
 PersistentIdTag public API. 更多...
 
struct  ResourceReceiptIdTag
 ResourceReceiptIdTag public API. 更多...
 
struct  ResourceReservationIdTag
 ResourceReservationIdTag public API. 更多...
 
class  ResultObservation
 Debug-only observation token shared by Result<T> specializations. 更多...
 
struct  RevisionTag
 RevisionTag public API. 更多...
 
struct  SceneObjectIdTag
 SceneObjectIdTag public API. 更多...
 
struct  SchemaVersionTag
 SchemaVersionTag public API. 更多...
 
struct  SimulationTickTag
 SimulationTickTag public API. 更多...
 
class  StrongUint64
 StrongUint64 public API. 更多...
 
struct  TransactionIdTag
 TransactionIdTag public API. 更多...
 
class  UuidIdState
 Tag-free state of a compatibility-aware UUID identity adapter. 更多...
 

概念

concept  ResultConstConversion
 True when From may convert into To only by adding const.
 

类型定义

using UuidBytes = std::array< std::uint8_t, 16 >
 Byte representation shared by every tagged 128-bit identity.
 
template<class T >
using ResultReturn = std::invoke_result_t< T >
 

函数

std::optional< UuidBytes > parseUuidText (std::string_view text) noexcept
 Parses canonical UUID text without knowing the domain tag.
 
std::string formatUuidBytes (const UuidBytes &bytes)
 Formats UUID bytes as lower-case canonical 8-4-4-4-12 text.
 
UuidBytes childUuidBytes (const UuidBytes &parent, std::string_view role) noexcept
 Derives a deterministic child UUID from a parent and a role.
 
template<class T , class U >
void moveAssignOptional (std::optional< T > &destination, std::optional< U > &&source)
 Replace destination with source even when T is not assignable.
 
eve::Result< void > validateRegistryNextSequence (EventSequence nextEventSequence)
 Validates the next-event-sequence floor of a restored registry image.
 
eve::Result< Generation > nextRegistryGeneration (Generation current, bool present)
 Next generation of one slot; present false means the slot is new.
 
eve::Result< EventSequence > nextRegistryEventSequence (EventSequence current)
 Next event sequence, or a Failed diagnostic when it is exhausted.
 

类型定义说明

◆ ResultReturn

template<class T >
using eve::detail::ResultReturn = typedef std::invoke_result_t<T>

在文件 Result.h 第 107 行定义.

◆ UuidBytes

using eve::detail::UuidBytes = typedef std::array<std::uint8_t, 16>

Byte representation shared by every tagged 128-bit identity.

在文件 Identity.h 第 54 行定义.

函数说明

◆ childUuidBytes()

UuidBytes eve::detail::childUuidBytes ( const UuidBytes &  parent,
std::string_view  role 
)
noexcept

Derives a deterministic child UUID from a parent and a role.

在文件 Identity.cpp 第 172 行定义.

引用了 hash , 以及 parent.

被这些函数引用 eve::detail::Id128< Tag >::child().

◆ formatUuidBytes()

std::string eve::detail::formatUuidBytes ( const UuidBytes &  bytes)

Formats UUID bytes as lower-case canonical 8-4-4-4-12 text.

在文件 Identity.cpp 第 160 行定义.

引用了 bytes.

被这些函数引用 eve::detail::UuidIdState::assign(), eve::UuidIdAdapter< Tag >::canonicalFormat() , 以及 eve::detail::Id128< Tag >::format().

◆ moveAssignOptional()

template<class T , class U >
void eve::detail::moveAssignOptional ( std::optional< T > &  destination,
std::optional< U > &&  source 
)

Replace destination with source even when T is not assignable.

std::optional<const T> can be constructed but not assigned. Rebuild the optional so Result<const T> can still move-assign.

Moves assign optional.

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

引用了 source.

◆ nextRegistryEventSequence()

eve::Result< EventSequence > eve::detail::nextRegistryEventSequence ( EventSequence  current)

Next event sequence, or a Failed diagnostic when it is exhausted.

在文件 VersionedRegistry.cpp 第 24 行定义.

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

◆ nextRegistryGeneration()

eve::Result< Generation > eve::detail::nextRegistryGeneration ( Generation  current,
bool  present 
)

Next generation of one slot; present false means the slot is new.

在文件 VersionedRegistry.cpp 第 15 行定义.

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

◆ parseUuidText()

std::optional< UuidBytes > eve::detail::parseUuidText ( std::string_view  text)
noexcept

Parses canonical UUID text without knowing the domain tag.

The tagged Id128<Tag> methods below only forward here. Keeping parse, format and derivation non-template means one machine-code copy each instead of one per domain tag, while the tag set stays open: adding a domain tag no longer duplicates any of them.

参数
textA 36-character UUID with 8-4-4-4-12 hexadecimal groups.
返回
The bytes, or empty when the text is malformed.

在文件 Identity.cpp 第 134 行定义.

引用了 bytes , 以及 text.

被这些函数引用 eve::detail::UuidIdState::assign() , 以及 eve::detail::Id128< Tag >::parse().

◆ validateRegistryNextSequence()

eve::Result< void > eve::detail::validateRegistryNextSequence ( EventSequence  nextEventSequence)

Validates the next-event-sequence floor of a restored registry image.

The versioning rules below hold for every VersionedRegistry<Key, Value, ...> instantiation, so they are defined once in VersionedRegistry.cpp instead of being emitted per key/value pair.

在文件 VersionedRegistry.cpp 第 10 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::detail::StrongUint64< Tag >::isZero(), eve::ParseError , 以及 eve::Result< T >::success().

被这些函数引用 eve::VersionedRegistry< Key, Value, EventData, Compare >::restoreState().