Lumiera  0.pre.03
»edit your freedom«
memento-tie.hpp File Reference

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/replaceable-item.hpp"
#include "lib/format-obj.hpp"
#include "lib/util.hpp"
#include <boost/operators.hpp>
#include <functional>
#include <string>

Classes

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

Namespaces

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