Template Struct command_context
Defined in File command.h
Inheritance Relationships
Base Type
public liberate::concurrency::command::command_context_base
(Struct command_context_base)
Struct Documentation
-
template<typename paramsT = void_t, typename resultsT = void_t>
struct command_context : public liberate::concurrency::command::command_context_base The actual command contexts expands upon the base by providing a parameter and result type. Note that in order to pass multiple parameters or results, you can use a struct or tuple, etc. here.
- Param paramsT
[in] The type of parameter the command context can hold.
- Param resultsT
[in] The result type the command context can hold.
Public Types
Public Functions
-
inline explicit command_context(command_type _type)
Like its ancestor, the command_context is initialized with a command type.
- Parameters
_type – [in] the command type for this context.
-
virtual ~command_context() = default
Virtual destructor
Public Members
-
std::unique_ptr<params_type> parameters = {}
Commands may hold parameters.
-
std::unique_ptr<results_type> results = {}
Commands may also hold a result.