Jazz2::Editor::LayerIdRemap class

Identities of this run of the editor for the layers kept by another one.

The identity of a layer (see DocumentLayer::Id) is unique only while the editor runs, so the layers of snapshots kept in a recovery copy (see CommandArchive) get new ones when they're read, the same one for the same layer in all of them.

Public functions

auto Map(std::uint32_t id) -> std::uint32_t
Returns the identity of this run for an identity of the other one, the same one every time.