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

#include <callable.h>

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

Public Member Functions

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

Protected Member Functions

void call (ParameterType value)
 

Protected Attributes

std::function< void(ParameterType)> func
 

Detailed Description

template<typename ParameterType>
class command::Callable< ParameterType >

Callable behaviour class.

Constructor & Destructor Documentation

◆ Callable()

template<typename ParameterType >
command::Callable< ParameterType >::Callable ( std::function< void(ParameterType)>  function)
inline

Default constructor.

Parameters
functionFunction that will be invoked

Member Function Documentation

◆ call()

template<typename ParameterType >
void command::Callable< ParameterType >::call ( ParameterType  value)
inlineprotected

Executes command binded with argument

Parameters
valueValue passed to program argument

Member Data Documentation

◆ func

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

Function handling user Arguments


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