Stateful revision cursor that projects one PixelWorld interest region. 更多...
#include <PixelWorldStreaming.h>
Public 成员函数 | |
| eve::Result< PixelChunkStreamUpdate > | capture (const eve::pixelworld::PixelWorld &source, eve::pixelworld::PixelChunkRegion interest) |
| Capture changed/entered Chunks and eviction tombstones for an interest region. | |
| void | reset () noexcept |
| Forget consumer projection state so the next capture is a full resync. | |
| std::uint64_t | revision () const noexcept |
| Last successfully captured source revision, or zero before first capture. | |
| std::size_t | knownChunkCount () const noexcept |
| Number of present Chunk coordinates believed to be held by the consumer. | |
详细描述
Stateful revision cursor that projects one PixelWorld interest region.
The cursor owns only consumer projection state: source link, last revision and known Chunk coordinates. PixelWorld remains the sole material authority. APIs are simulation-thread affine, retain no world pointer and invoke no callbacks.
在文件 PixelWorldStreaming.h 第 55 行定义.
成员函数说明
◆ capture()
| eve::Result< PixelChunkStreamUpdate > eve::pixelworld_streaming::PixelChunkStreamCursor::capture | ( | const eve::pixelworld::PixelWorld & | source, |
| eve::pixelworld::PixelChunkRegion | interest | ||
| ) |
Capture changed/entered Chunks and eviction tombstones for an interest region.
- 参数
-
source World borrowed synchronously and never retained. interest Inclusive Chunk-coordinate rectangle, bounded by PixelWorld.
- 返回
- Owning canonical correction batch. Source epoch changes force full resync.
- 备注
- Failure leaves cursor revision and known coordinates unchanged.
在文件 PixelWorldStreaming.cpp 第 21 行定义.
引用了 eve::pixelworld_streaming::PixelChunkStreamUpdate::batch, eve::pixelworld::PixelChunkBatch::catalogFingerprint, eve::pixelworld::PixelChunkBatch::chunks, eve::pixelworld_streaming::PixelChunkStreamUpdate::chunksEntered, eve::pixelworld_streaming::PixelChunkStreamUpdate::chunksEvicted, eve::Result< T >::failure(), eve::pixelworld::PixelChunkBatch::fullResync, eve::pixelworld_streaming::PixelChunkStreamUpdate::fullResync, key, left, output, right, source, eve::pixelworld::PixelChunkBatch::sourceLastEditSequence, eve::pixelworld::PixelChunkBatch::sourceRevision, eve::pixelworld::PixelChunkBatch::sourceSeed, eve::pixelworld::PixelChunkBatch::sourceTick, eve::Result< T >::success(), eve::pixelworld::PixelWorldLink::world, x , 以及 y.
◆ knownChunkCount()
|
inlinenoexcept |
Number of present Chunk coordinates believed to be held by the consumer.
在文件 PixelWorldStreaming.h 第 73 行定义.
◆ reset()
|
noexcept |
Forget consumer projection state so the next capture is a full resync.
在文件 PixelWorldStreaming.cpp 第 77 行定义.
◆ revision()
|
inlinenoexcept |
Last successfully captured source revision, or zero before first capture.
在文件 PixelWorldStreaming.h 第 71 行定义.
该类的文档由以下文件生成:
- src/modules/pixelworld/streaming/PixelWorldStreaming.h
- src/modules/pixelworld/streaming/PixelWorldStreaming.cpp