Owning state image used for transactional snapshot/restore. 更多...
#include <VersionedRegistry.h>
Public 成员函数 | |
| void | swap (State &other) noexcept |
| Atomically exchanges complete registry state without allocation. | |
Public 属性 | |
| std::map< Key, Entry, Compare > | entries |
| std::vector< Event > | events |
| EventSequence | nextEventSequence {1} |
详细描述
struct eve::VersionedRegistry< Key, Value, EventData, Compare >::State
Owning state image used for transactional snapshot/restore.
Entries include tombstones. Restoring this image never emits individual subscription callbacks; callers re-query after a successful restore.
在文件 VersionedRegistry.h 第 175 行定义.
成员函数说明
◆ swap()
|
inlinenoexcept |
Atomically exchanges complete registry state without allocation.
在文件 VersionedRegistry.h 第 181 行定义.
引用了 eve::VersionedRegistry< Key, Value, EventData, Compare >::State::entries, eve::VersionedRegistry< Key, Value, EventData, Compare >::State::events, eve::VersionedRegistry< Key, Value, EventData, Compare >::State::nextEventSequence , 以及 sequence.
被这些函数引用 eve::VersionedRegistry< Key, Value, EventData, Compare >::restoreState().
类成员变量说明
◆ entries
| std::map<Key, Entry, Compare> eve::VersionedRegistry< Key, Value, EventData, Compare >::State::entries |
在文件 VersionedRegistry.h 第 176 行定义.
被这些函数引用 eve::VersionedRegistry< Key, Value, EventData, Compare >::at(), eve::VersionedRegistry< Key, Value, EventData, Compare >::contains(), eve::VersionedRegistry< Key, Value, EventData, Compare >::generationOf(), eve::VersionedRegistry< Key, Value, EventData, Compare >::handle(), eve::VersionedRegistry< Key, Value, EventData, Compare >::isStale(), eve::VersionedRegistry< Key, Value, EventData, Compare >::isTombstone(), eve::VersionedRegistry< Key, Value, EventData, Compare >::keyAt(), eve::VersionedRegistry< Key, Value, EventData, Compare >::resolve(), eve::VersionedRegistry< Key, Value, EventData, Compare >::resolve(), eve::VersionedRegistry< Key, Value, EventData, Compare >::restoreState(), eve::VersionedRegistry< Key, Value, EventData, Compare >::size(), eve::VersionedRegistry< Key, Value, EventData, Compare >::State::swap() , 以及 eve::VersionedRegistry< Key, Value, EventData, Compare >::tombstoneCount().
◆ events
| std::vector<Event> eve::VersionedRegistry< Key, Value, EventData, Compare >::State::events |
在文件 VersionedRegistry.h 第 177 行定义.
被这些函数引用 eve::VersionedRegistry< Key, Value, EventData, Compare >::clearEvents(), eve::VersionedRegistry< Key, Value, EventData, Compare >::eventAt(), eve::VersionedRegistry< Key, Value, EventData, Compare >::eventCount(), eve::VersionedRegistry< Key, Value, EventData, Compare >::restoreState() , 以及 eve::VersionedRegistry< Key, Value, EventData, Compare >::State::swap().
◆ nextEventSequence
| EventSequence eve::VersionedRegistry< Key, Value, EventData, Compare >::State::nextEventSequence {1} |
该结构体的文档由以下文件生成:
- src/engine/common/VersionedRegistry.h