Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::PositionChange Struct Reference

Scalar ordering operation; payload and row identities remain in the model. More...

#include <model_position.hpp>

Static Public Member Functions

static constexpr PositionChange splice (std::uint64_t first, std::uint64_t removed, std::uint64_t inserted) noexcept
static constexpr PositionChange move (std::uint64_t first, std::uint64_t count, std::uint64_t destination) noexcept

Public Attributes

PositionChangeKind kind {PositionChangeKind::SPLICE}
 Operation interpretation.
std::uint64_t first {}
 Range start in the preceding operation's result.
std::uint64_t removed {}
 Removed or moved row count.
std::uint64_t inserted {}
 New count for SPLICE; zero for MOVE.
std::uint64_t destination {}
 MOVE destination after removing the range.

Detailed Description

Scalar ordering operation; payload and row identities remain in the model.

Member Function Documentation

◆ move()

constexpr PositionChange portals::PositionChange::move ( std::uint64_t first,
std::uint64_t count,
std::uint64_t destination )
inlinestaticconstexprnoexcept
Parameters
firstRange start.
countNumber of rows to move.
destinationIndex in the sequence after removing the range.
Returns
A move preserving identities, without allocating payload.

◆ splice()

constexpr PositionChange portals::PositionChange::splice ( std::uint64_t first,
std::uint64_t removed,
std::uint64_t inserted )
inlinestaticconstexprnoexcept
Parameters
firstRange start.
removedRemoved count.
insertedInserted count.
Returns
An ordering splice, without allocating payload.

The documentation for this struct was generated from the following file: