morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::table::detail::JobInput Struct Reference

Everything one view job reads. Immutable once the job starts. More...

#include <engine.hpp>

Public Attributes

std::shared_ptr< RowSnapshot const > snapshot
 The rows.
std::vector< ColumnInfo > columns
 The columns.
Services services
 Services for this job alone (Services::forTask).
std::vector< std::shared_ptr< KeyColumn const > > keys
 Key columns by column index; null when not built.
std::vector< std::size_t > needed
 Columns whose keys the job needs.
SortChain sort
 The sort chain.
std::shared_ptr< CompiledFilter const > filter
 The compiled filter, or null.
std::shared_ptr< std::vector< std::uint32_t > const > cachedSorted
 The full source's order for sort on snapshot, or null.
std::vector< std::uint32_t > previousView
 The displayed view the change is computed against.
std::shared_ptr< RowSnapshot const > previousSnapshot
 The snapshot previousView's rows index.
bool indicesStable = true
 previousView's rows index snapshot directly.
std::vector< std::uint32_t > dirty
 Rows whose cells changed since keys were built: their keys are rebuilt on copies, a repair merges them back, and the change reports those in both views as Changed.
std::vector< std::uint32_t > previousTrueView
 Repair: the sorted, filtered order, without holds, that the dirty rows merge into.
bool repair = false
 The job repairs updated rows rather than recomputing.
bool allChanged = false
 Every surviving row may have new content (a reset).
std::size_t resetThreshold = 5000
 More operations than this make the change a reset.

Detailed Description

Everything one view job reads. Immutable once the job starts.

Definition at line 220 of file engine.hpp.

Member Data Documentation

◆ snapshot

std::shared_ptr<RowSnapshot const> morph::table::detail::JobInput::snapshot

The rows.

Definition at line 222 of file engine.hpp.

◆ columns

std::vector<ColumnInfo> morph::table::detail::JobInput::columns

The columns.

Definition at line 224 of file engine.hpp.

◆ services

Services morph::table::detail::JobInput::services

Services for this job alone (Services::forTask).

Definition at line 226 of file engine.hpp.

◆ keys

std::vector<std::shared_ptr<KeyColumn const> > morph::table::detail::JobInput::keys

Key columns by column index; null when not built.

Definition at line 228 of file engine.hpp.

◆ needed

std::vector<std::size_t> morph::table::detail::JobInput::needed

Columns whose keys the job needs.

Definition at line 230 of file engine.hpp.

◆ sort

SortChain morph::table::detail::JobInput::sort

The sort chain.

Definition at line 232 of file engine.hpp.

◆ filter

std::shared_ptr<CompiledFilter const> morph::table::detail::JobInput::filter

The compiled filter, or null.

Definition at line 234 of file engine.hpp.

◆ cachedSorted

std::shared_ptr<std::vector<std::uint32_t> const> morph::table::detail::JobInput::cachedSorted

The full source's order for sort on snapshot, or null.

Definition at line 236 of file engine.hpp.

◆ previousView

std::vector<std::uint32_t> morph::table::detail::JobInput::previousView

The displayed view the change is computed against.

Definition at line 238 of file engine.hpp.

◆ previousSnapshot

std::shared_ptr<RowSnapshot const> morph::table::detail::JobInput::previousSnapshot

The snapshot previousView's rows index.

Definition at line 240 of file engine.hpp.

◆ indicesStable

bool morph::table::detail::JobInput::indicesStable = true

previousView's rows index snapshot directly.

Definition at line 242 of file engine.hpp.

◆ dirty

std::vector<std::uint32_t> morph::table::detail::JobInput::dirty

Rows whose cells changed since keys were built: their keys are rebuilt on copies, a repair merges them back, and the change reports those in both views as Changed.

Definition at line 246 of file engine.hpp.

◆ previousTrueView

std::vector<std::uint32_t> morph::table::detail::JobInput::previousTrueView

Repair: the sorted, filtered order, without holds, that the dirty rows merge into.

Definition at line 248 of file engine.hpp.

◆ repair

bool morph::table::detail::JobInput::repair = false

The job repairs updated rows rather than recomputing.

Definition at line 250 of file engine.hpp.

◆ allChanged

bool morph::table::detail::JobInput::allChanged = false

Every surviving row may have new content (a reset).

Definition at line 252 of file engine.hpp.

◆ resetThreshold

std::size_t morph::table::detail::JobInput::resetThreshold = 5000

More operations than this make the change a reset.

Definition at line 254 of file engine.hpp.


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