Command  0.3
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
command::Callable< void > Class Reference

#include <callable.h>

Inheritance diagram for command::Callable< void >:
[legend]

Public Member Functions

 Callable (std::function< void(void)> function)
 

Protected Member Functions

void call ()
 

Protected Attributes

std::function< void(void)> func
 

Detailed Description

Template specialization of Callable behaviour class. Allows passing functions with void argument

Constructor & Destructor Documentation

◆ Callable()

command::Callable< void >::Callable ( std::function< void(void)>  function)
inline

Default constructor.

Parameters
functionFunction that will be invoked

Member Function Documentation

◆ call()

void command::Callable< void >::call ( )
inlineprotected

Executes command

Member Data Documentation

◆ func

std::function<void(void)> command::Callable< void >::func
protected

Function handling user Arguments


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