Scalar ordering operation; payload and row identities remain in the model.
More...
#include <model_position.hpp>
|
| 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 |
|
|
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.
|
Scalar ordering operation; payload and row identities remain in the model.
◆ move()
| constexpr PositionChange portals::PositionChange::move |
( |
std::uint64_t | first, |
|
|
std::uint64_t | count, |
|
|
std::uint64_t | destination ) |
|
inlinestaticconstexprnoexcept |
- Parameters
-
| first | Range start. |
| count | Number of rows to move. |
| destination | Index 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
-
| first | Range start. |
| removed | Removed count. |
| inserted | Inserted count. |
- Returns
- An ordering splice, without allocating payload.
The documentation for this struct was generated from the following file: