Toast Engine
Loading...
Searching...
No Matches
toast::WorkspaceHistory Class Reference

Classes

struct  Context
struct  PendingMerge

Public Types

using Snapshot = assets::Prefab
using Capture = std::function<Snapshot()>
using Restore = std::function<bool(const Snapshot&)>

Public Member Functions

 WorkspaceHistory (uint64_t handle, Capture capture, Restore restore, bool available, bool initially_saved)
auto available () const noexcept -> bool
auto transactionOpen () const noexcept -> bool
auto restoring () const noexcept -> bool
void begin (uint64_t transaction, Context context)
void commit (uint64_t transaction=0)
void cancel (uint64_t transaction=0)
auto beginAtomic (Context context) -> bool
void finishAtomic (bool owned)
void apply (const event::WorkspaceApplyHistorySnapshot &request)
void prepareMerge (const event::WorkspacePrepareHistoryMerge &request)
void resolve (const event::WorkspaceResolveHistoryConflicts &resolutions)
void sendInitial () const

The documentation for this class was generated from the following files: