Copyable bookmark owning metadata only; never retains model, snapshot, view or page. Copies share immutable opaque bytes without allocation. Resource identity is process-local unless the provider supplies a portable identity/codec on export. This value alone cannot reopen a source or recreate missing model data.
More...
#include <model_position.hpp>
|
|
static constexpr std::uint32_t | FORMAT_VERSION = 1 |
| | Version of this in-memory bookmark schema.
|
Copyable bookmark owning metadata only; never retains model, snapshot, view or page. Copies share immutable opaque bytes without allocation. Resource identity is process-local unless the provider supplies a portable identity/codec on export. This value alone cannot reopen a source or recreate missing model data.
◆ ModelBookmark() [1/2]
| portals::ModelBookmark::ModelBookmark |
( |
const ModelBookmark & | other | ) |
|
|
default |
- Parameters
-
| other | Immutable metadata owner to share without allocating. |
◆ ModelBookmark() [2/2]
| portals::ModelBookmark::ModelBookmark |
( |
ModelBookmark && | other | ) |
|
|
inlinenoexcept |
- Parameters
-
| other | Metadata owner to transfer, leaving an empty invalid bookmark. |
◆ create()
- Parameters
-
| resource | Logical resource and compatible-history generation. |
| position | Valid typed position in a positive data revision. |
| metadata | Optional provider-owned opaque bytes, copied before success. |
| options | Maximum conservatively charged metadata size. |
- Returns
- Immutable bookmark, INVALID_ARGUMENT, WOULD_BLOCK or NO_MEMORY.
◆ formatVersion()
| std::uint32_t portals::ModelBookmark::formatVersion |
( |
| ) |
const |
|
inlineconstexprnoexcept |
- Returns
- In-memory schema version; persistence codecs are a separate capability.
◆ metadata()
| std::span< const std::byte > portals::ModelBookmark::metadata |
( |
| ) |
const |
|
noexcept |
- Returns
- Metadata borrowed until this value or a copy is released.
◆ operator=()
- Parameters
-
| other | Complete replacement; old storage is released after all fields change. |
- Returns
- This value; copying immutable payload ownership does not allocate.
◆ position()
- Returns
- Captured scalar position, with no borrowed row data.
◆ resource()
- Returns
- Logical identity; empty for a default bookmark.
◆ storageBytes()
| std::size_t portals::ModelBookmark::storageBytes |
( |
| ) |
const |
|
noexcept |
- Returns
- Conservatively charged metadata bytes, not process RSS.
The documentation for this class was generated from the following file: