Immutable, bounded projection of one pinned DocumentView. More...
#include <agent_view.hpp>
Public Member Functions | |
| timeline::DocumentRevision | revision () const noexcept |
| runtime::Result< Outline, Error > | outline (timeline::DocumentRevision expected_revision) const |
| runtime::Result< RegionPage, Error > | region (const RegionRequest &request) const |
| runtime::Result< OutlineDiff, Error > | diff (timeline::DocumentRevision expected_revision, DirtyRevisionRange revisions, const timeline::DirtySet &dirty) const |
| Projects a DirtySet across one adjacent transition ending at this pin. | |
Static Public Member Functions | |
| static runtime::Result< AgentView, Error > | create (timeline::DocumentView view, Limits limits={}) |
Immutable, bounded projection of one pinned DocumentView.
|
static |
| runtime::Result< OutlineDiff, Error > pulp::timeline_agent_view::AgentView::diff | ( | timeline::DocumentRevision | expected_revision, |
| DirtyRevisionRange | revisions, | ||
| const timeline::DirtySet & | dirty ) const |
Projects a DirtySet across one adjacent transition ending at this pin.
Callers obtain freshness from their live session because a pin cannot discover a later commit by itself. Adjacency is validated, but DirtySet has no origin token, so callers remain responsible for pairing the set with the CommitResult that produced it.
| runtime::Result< Outline, Error > pulp::timeline_agent_view::AgentView::outline | ( | timeline::DocumentRevision | expected_revision | ) | const |
| runtime::Result< RegionPage, Error > pulp::timeline_agent_view::AgentView::region | ( | const RegionRequest & | request | ) | const |
|
inlinenoexcept |