Owning validated source snapshot. No mesh pointer survives preparation. Schema eve.procgen.road.geometrySources v1 ignores unknown fields and rejects unsupported versions. The little-endian FNV-1a digest detects stale mesh streams; it is not an authentication mechanism. Source ids are local to the producing bake, not globally qualified author identities. Caller-thread affine, synchronous and callback-free. Re-prepare before applying intervals to a changed mesh. 更多...
#include <RoadGeometrySources.h>
Public 成员函数 | |
| ~PreparedRoadGeometrySources () | |
| Release the owned interval snapshot. | |
| PreparedRoadGeometrySources (PreparedRoadGeometrySources &&) noexcept | |
| Transfer the snapshot; invalidates old borrowed spans. | |
| PreparedRoadGeometrySources & | operator= (PreparedRoadGeometrySources &&) noexcept |
| Replace the snapshot; invalidates old borrowed spans. | |
| PreparedRoadGeometrySources (const PreparedRoadGeometrySources &)=delete | |
| PreparedRoadGeometrySources & | operator= (const PreparedRoadGeometrySources &)=delete |
| std::span< const RoadGeometrySourceSpan > | spans () const noexcept |
| Read prepared intervals without rebuilding. Borrowed until token move, replacement or destruction. | |
静态 Public 成员函数 | |
| static Result< PreparedRoadGeometrySources > | prepare (const MeshBuild &mesh) |
| Validate mesh layout, fingerprint and complete ordered source partition before returning an owned token. | |
详细描述
Owning validated source snapshot. No mesh pointer survives preparation. Schema eve.procgen.road.geometrySources v1 ignores unknown fields and rejects unsupported versions. The little-endian FNV-1a digest detects stale mesh streams; it is not an authentication mechanism. Source ids are local to the producing bake, not globally qualified author identities. Caller-thread affine, synchronous and callback-free. Re-prepare before applying intervals to a changed mesh.
在文件 RoadGeometrySources.h 第 24 行定义.
构造及析构函数说明
◆ ~PreparedRoadGeometrySources()
|
default |
Release the owned interval snapshot.
◆ PreparedRoadGeometrySources() [1/2]
|
defaultnoexcept |
Transfer the snapshot; invalidates old borrowed spans.
◆ PreparedRoadGeometrySources() [2/2]
|
delete |
成员函数说明
◆ operator=() [1/2]
|
delete |
◆ operator=() [2/2]
|
defaultnoexcept |
Replace the snapshot; invalidates old borrowed spans.
◆ prepare()
|
static |
Validate mesh layout, fingerprint and complete ordered source partition before returning an owned token.
- 参数
-
mesh Borrowed until return; missing old/chunk metadata returns Unsupported.
- 返回
- Prepared snapshot or diagnostic, without changing the mesh. @cost Linear in all mesh streams and bounded metadata, amortized once per bake/load before source queries.
在文件 RoadGeometrySources.cpp 第 88 行定义.
引用了 a, count, d, digest, first, eve::Value::fromJson(), key, kind, mesh, number, root, rows, s, size, text , 以及 version.
被这些函数引用 eve::procgen::generateRoadNetworkArtifact() , 以及 eve::procgen::road::RoadTerrainPlan::prepare().
◆ spans()
|
noexcept |
Read prepared intervals without rebuilding. Borrowed until token move, replacement or destruction.
在文件 RoadGeometrySources.cpp 第 87 行定义.
该类的文档由以下文件生成:
- src/modules/procgen/road/RoadGeometrySources.h
- src/modules/procgen/road/RoadGeometrySources.cpp