Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
MementoTie_test Class Reference

Description

Test:
Verify the state capturing mechanism (memento), which is used to implement the Undo() functionality for Steam-Layer commands. Bind an undo function and a state capturing function and wire up both to store and retrieve a memento value. Verify that after closing the functions, actually state is captured by each invocation.
See also
control::Command
control::CmdClosure
control::UndoMutation
command-mutation-test.hpp

Definition at line 71 of file memento-tie-test.cpp.

Private Types

typedef void OpSIG(short)
 assumed signature of the Command "Operation"
 
typedef MementoTie< OpSIG, intMemHolder
 

Private Member Functions

virtual void run (Arg)
 
void checkStateCapturingMechanism ()
 

Member Typedef Documentation

◆ OpSIG

typedef void OpSIG(short)
private

assumed signature of the Command "Operation"

Definition at line 83 of file memento-tie-test.cpp.

◆ MemHolder

Definition at line 84 of file memento-tie-test.cpp.

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 75 of file memento-tie-test.cpp.

References MementoTie_test::checkStateCapturingMechanism().

+ Here is the call graph for this function:

◆ checkStateCapturingMechanism()

void checkStateCapturingMechanism ( )
inlineprivate

Definition at line 88 of file memento-tie-test.cpp.

References VERIFY_ERROR.

Referenced by MementoTie_test::run().

+ Here is the caller graph for this function:
+ Inheritance diagram for MementoTie_test:
+ Collaboration diagram for MementoTie_test:

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