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

Description

Test:
cover command equality detection. Two commands are deemed equivalent, if they are based on the same CommandImpl record. This means, we only rely on the identity of those commands, but do not check the equivalence of their backing implementations. The latter can not be possibly implemented in a totally airtight fashion, and for this reason, the C++ standard decided not to support comparison between std::function objects.
See also
control::Command
control::CommandImpl
command-basic-test.hpp

Definition at line 102 of file command-equality-test.cpp.

Private Member Functions

virtual void run (Arg)
 
string execCommand (Command com)
 Helper: invoke and undo a command,.
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 106 of file command-equality-test.cpp.

References CommandEquality_test::execCommand(), Command::get(), and CommandDef::operation().

+ Here is the call graph for this function:

◆ execCommand()

string execCommand ( Command  com)
inlineprivate

Helper: invoke and undo a command,.

Returns
resulting operation protocol

Definition at line 148 of file command-equality-test.cpp.

References AcceptAnyBind< TAR, BA, RET >::bind(), and Command::undo().

Referenced by CommandEquality_test::run().

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

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