Skip to content

DesignPattern::Command🔗

More...

#include <action.hpp>

Public Functions🔗

Name
void operator()(Arg & arg)
virtual ~Command()

Protected Functions🔗

Name
virtual void exec(Arg & arg)

Detailed Description🔗

template <typename Arg >
class DesignPattern::Command;

Todo: : variadic arguments and perfect forwarding

variant with return value and other nice features (in essence, a generic functor in contrast to lambdas)

Public Functions Documentation🔗

function operator()🔗

inline void operator()(
    Arg & arg
)

function ~Command🔗

inline virtual ~Command()

Protected Functions Documentation🔗

function exec🔗

inline virtual void exec(
    Arg & arg
)

Updated on 26 April 2021 at 15:31:01 CEST