mcx::state_machine::_Event2

mcx::state_machine::_Event2

More…

Inherits from mcx::state_machine::Event< STATE >

Public Functions

Name
_Event2(Signature event_func, const typename DR< P1 >::T & param1, const typename DR< P2 >::T & param2)
virtual EventStatus dispatchEvent(STATE * state)
virtual bool compare(const Event< STATE > * cmp)

Protected Attributes

Name
Signature eventFunc_
const DR< P1 >::T param1_
const DR< P2 >::T param2_

Additional inherited members

Public Functions inherited from mcx::state_machine::Event< STATE >

Name
Event()
virtual ~Event() =default
void setTerminateFunc(Signature term_func)
const Signature & getTerminateFunc()
void setExecutedOnceFlag(bool once_executed_flag)
bool getExecutedOnceFlag()
void setTimeoutSec(double timeout_sec)
double getTimeoutSec()

Protected Attributes inherited from mcx::state_machine::Event< STATE >

Name
bool onceExecutedFlag_
double timeoutSec_
Signature termFunc_

Detailed Description

template <class STATE ,
class P1 ,
class P2 >
class mcx::state_machine::_Event2;

Public Functions Documentation

function _Event2

inline _Event2(
    Signature event_func,
    const typename DR< P1 >::T & param1,
    const typename DR< P2 >::T & param2
)

function dispatchEvent

inline virtual EventStatus dispatchEvent(
    STATE * state
)

Reimplements: mcx::state_machine::Event::dispatchEvent

function compare

inline virtual bool compare(
    const Event< STATE > * cmp
)

Reimplements: mcx::state_machine::Event::compare

Protected Attributes Documentation

variable eventFunc_

Signature eventFunc_;

variable param1_

const DR< P1 >::T param1_;

variable param2_

const DR< P2 >::T param2_;

Updated on 2022-04-05 at 16:21:27 +0200