Incremental validator for the retained event log of a registry image. 更多...
#include <VersionedRegistry.h>
Public 成员函数 | |
| eve::Result< void > | accept (EventSequence sequence, Generation generation, bool remove, bool tombstone) |
| Accept one event header; the first failure describes the whole log. | |
| eve::Result< void > | finish (EventSequence nextEventSequence) const |
| Validate the boundary between the retained log and the next sequence. | |
详细描述
Incremental validator for the retained event log of a registry image.
Rules: strictly increasing positive sequences, positive generations, and a tombstone exactly when the event removes a key.
在文件 VersionedRegistry.h 第 59 行定义.
成员函数说明
◆ accept()
| eve::Result< void > eve::detail::EventLogValidator::accept | ( | EventSequence | sequence, |
| Generation | generation, | ||
| bool | remove, | ||
| bool | tombstone | ||
| ) |
Accept one event header; the first failure describes the whole log.
在文件 VersionedRegistry.cpp 第 32 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), generation, eve::detail::StrongUint64< Tag >::isZero(), eve::ParseError, sequence , 以及 eve::Result< T >::success().
被这些函数引用 eve::VersionedRegistry< Key, Value, EventData, Compare >::restoreState().
◆ finish()
| eve::Result< void > eve::detail::EventLogValidator::finish | ( | EventSequence | nextEventSequence | ) | const |
Validate the boundary between the retained log and the next sequence.
在文件 VersionedRegistry.cpp 第 43 行定义.
引用了 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().
该类的文档由以下文件生成:
- src/engine/common/VersionedRegistry.h
- src/engine/common/VersionedRegistry.cpp