Immutable bounded provider proof between two revisions of a finite order. The provider must report all ordering changes truthfully; validation checks shape and arithmetic, not the contents of two snapshots. O(operation count), never O(rows). The operation cap is configurable. Large proofs belong on the existing worker path; constructing a map does not dispatch work or make a UI scan acceptable.
More...
#include <model_position.hpp>
Immutable bounded provider proof between two revisions of a finite order. The provider must report all ordering changes truthfully; validation checks shape and arithmetic, not the contents of two snapshots. O(operation count), never O(rows). The operation cap is configurable. Large proofs belong on the existing worker path; constructing a map does not dispatch work or make a UI scan acceptable.
◆ afterCount()
| std::uint64_t portals::PositionChangeMap::afterCount |
( |
| ) |
const |
|
noexcept |
- Returns
- Target finite row count, or zero for no proof.
◆ create()
- Parameters
-
| fromRevision | Positive revision in which positions were captured. |
| toRevision | Strictly newer target revision. |
| beforeCount | Row count in fromRevision; metadata only. |
| changes | Complete ordered splices/moves, copied before success. |
| options | Maximum retained operation count. |
- Returns
- Validated immutable proof, INVALID_ARGUMENT, WOULD_BLOCK or NO_MEMORY.
◆ fromRevision()
| std::uint64_t portals::PositionChangeMap::fromRevision |
( |
| ) |
const |
|
noexcept |
- Returns
- Original revision, or zero for no proof.
◆ map()
- Parameters
-
| position | Item/gap captured in fromRevision. |
- Returns
- Mapped ordinal/gap, or INVALID_ARGUMENT/UNSUPPORTED/REVISION_CHANGED.
◆ operator bool()
| portals::PositionChangeMap::operator bool |
( |
| ) |
const |
|
explicitnoexcept |
- Returns
- True when this value contains a declared revision mapping.
◆ toRevision()
| std::uint64_t portals::PositionChangeMap::toRevision |
( |
| ) |
const |
|
noexcept |
- Returns
- Target revision, or zero for no proof.
The documentation for this class was generated from the following file: