Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
memento-tie.hpp File Reference

A special binding used by Steam-Layer commands for capturing UNDO state information. More...

Go to the source code of this file.

Description

A special binding used by Steam-Layer commands for capturing UNDO state information.

The UndoMutation, which is the functor object created and configured by the Command for handling UNDO, utilises a MementoTie (as ctor parameter) for binding together the "undo capture function" and the actual "undo function", by retrieving the memento data or memento object from the former and feeding it to the latter as an additional parameter, when the undo operation is invoked.

See also
CmdClosure
UndoMutation
memento-tie-test.cpp

Definition in file memento-tie.hpp.

#include "lib/meta/maybe-compare.hpp"
#include "lib/meta/function-closure.hpp"
#include "steam/control/command-signature.hpp"
#include "lib/item-wrapper.hpp"
#include "lib/format-obj.hpp"
#include "lib/util.hpp"
#include <functional>
#include <string>

Namespaces

namespace  steam
 Steam-Layer implementation namespace root.
 
namespace  steam::control
 Steam-Layer dispatcher, controller and administrative facilities.
 

Classes

class  MementoTie< SIG, MEM >
 Binding together state capturing and execution of the undo operation. More...