Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
CmdClosure Class Referenceabstract

#include "steam/control/command-closure.hpp"

Description

Interface.

Definition at line 92 of file command-closure.hpp.

Public Member Functions

virtual ~CmdClosure ()
 
 operator bool () const
 
virtual operator string () const =0
 
virtual bool isValid () const =0
 does this closure hold a valid argument tuple?
 
virtual bool isCaptured () const =0
 does this closure hold captured UNDO state?
 
virtual void bindArguments (Arguments &)=0
 store a set of parameter values within this closure
 
virtual void bindArguments (lib::diff::Rec const &)=0
 store a set of parameter values, passed as GenNode sequence
 
virtual void unbindArguments ()=0
 discard any parameters and return to unbound state
 
virtual void invoke (CmdFunctor const &)=0
 invoke functor using the stored parameter values
 
virtual void accept (CommandImplCloneBuilder &) const =0
 assist with creating clone closure without disclosing concrete type
 

Constructor & Destructor Documentation

◆ ~CmdClosure()

virtual ~CmdClosure ( )
inlinevirtual

Definition at line 95 of file command-closure.hpp.

Member Function Documentation

◆ operator bool()

operator bool ( ) const
inlineexplicit

Definition at line 96 of file command-closure.hpp.

References CmdClosure::isValid().

+ Here is the call graph for this function:

◆ operator string()

virtual operator string ( ) const
pure virtual

◆ isValid()

virtual bool isValid ( ) const
pure virtual

does this closure hold a valid argument tuple?

Implemented in SimpleClosure< SIG >, and StorageHolder< SIG, MEM >.

Referenced by CmdClosure::operator bool().

+ Here is the caller graph for this function:

◆ isCaptured()

virtual bool isCaptured ( ) const
pure virtual

does this closure hold captured UNDO state?

Implemented in SimpleClosure< SIG >, and StorageHolder< SIG, MEM >.

◆ bindArguments() [1/2]

virtual void bindArguments ( Arguments )
pure virtual

store a set of parameter values within this closure

Implemented in SimpleClosure< SIG >, and StorageHolder< SIG, MEM >.

◆ bindArguments() [2/2]

virtual void bindArguments ( lib::diff::Rec const )
pure virtual

store a set of parameter values, passed as GenNode sequence

Implemented in SimpleClosure< SIG >, and StorageHolder< SIG, MEM >.

◆ unbindArguments()

virtual void unbindArguments ( )
pure virtual

discard any parameters and return to unbound state

Implemented in SimpleClosure< SIG >, and StorageHolder< SIG, MEM >.

◆ invoke()

virtual void invoke ( CmdFunctor const )
pure virtual

invoke functor using the stored parameter values

Implemented in SimpleClosure< SIG >, and StorageHolder< SIG, MEM >.

Referenced by CommandArgument_test::simulateCmdLifecycle().

+ Here is the caller graph for this function:

◆ accept()

virtual void accept ( CommandImplCloneBuilder ) const
pure virtual

assist with creating clone closure without disclosing concrete type

Implemented in SimpleClosure< SIG >, and StorageHolder< SIG, MEM >.

+ Inheritance diagram for CmdClosure:
+ Collaboration diagram for CmdClosure:

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