control::UndoMutation Class Reference

#include <command-mutation.hpp>

Inheritance diagram for control::UndoMutation:

Inheritance graph
[legend]
Collaboration diagram for control::UndoMutation:

Collaboration graph
[legend]

List of all members.


Detailed Description

Specialised version of the command Mutation functor, used to implement the UNDO functionality.

The operation executed when invoking this functor is the UNDO operation of the respective command; additionally we need another functor to capture the state to be restored on UNDO. Both functors are wired up internally to cooperate and store the state (memento), which is implemented by the specifically typed MementoTie object passed in on construction. All these specific details are concealed (erased) on the interface

Definition at line 131 of file command-mutation.hpp.


Public Member Functions

MutationcaptureState (CmdClosure &clo)
template<typename SIG, typename MEM>
 UndoMutation (MementoTie< SIG, MEM > &mementoHolder)

Private Attributes

Mutation captureMemento_

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

Generated on Sun Aug 1 21:32:18 2010 for Lumiera by  doxygen 1.5.6