Lumiera  0.pre.03
»edit your freedom«
steam::control::test::anonymous_namespace{memento-tie-test.cpp} Namespace Reference

Functions

int capture (short param)
 
void undo (short param, int memento)
 

Variables

const size_t ALIGNMENT = sizeof(size_t)
 maximum additional storage maybe wasted due to alignment of the memento value within MementoTie
 
int testVal =0
 used to verify the effect of testFunc
 

Function Documentation

◆ undo()

void steam::control::test::anonymous_namespace{memento-tie-test.cpp}::undo ( short  param,
int  memento 
)
Parameters
mementosimulates "Undo" of the command operation

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

Referenced by Command::Command(), and HandlingPattern::~HandlingPattern().

+ Here is the caller graph for this function:

◆ capture()

int steam::control::test::anonymous_namespace{memento-tie-test.cpp}::capture ( short  param)
Parameters
paramsimulates capturing the undo state

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