FSM/vscode/manual/latex/struct_f_s_m_handler.tex

81 lines
6.5 KiB
TeX
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

\doxysection{FSMHandler Struct Reference}
\hypertarget{struct_f_s_m_handler}{}\label{struct_f_s_m_handler}\index{FSMHandler@{FSMHandler}}
状态处理函数集合,全部需要子类重新填充内容
{\ttfamily \#include $<$FSM\+\_\+protected.\+h$>$}
\doxysubsubsection*{Data Fields}
\begin{DoxyCompactItemize}
\item
int(\texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*} \mbox{\hyperlink{struct_f_s_m_handler_a934ff7d1a2f7714694b8a2927b5f8451}{select\+Next\+State}} )(void \texorpdfstring{$\ast$}{*}data, \mbox{\hyperlink{struct_f_s_m_signals}{FSMSignals}} \texorpdfstring{$\ast$}{*}signals)
\item
void(\texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*} \mbox{\hyperlink{struct_f_s_m_handler_ac3b9fc077f8ba0368e8cba02a890aa2f}{transition\+Table}} )(void \texorpdfstring{$\ast$}{*}data)
\item
void(\texorpdfstring{$\ast$}{*} \mbox{\hyperlink{struct_f_s_m_handler_ab199071e132b4409d71883155e6b81f2}{transition\+General\+Action}} )(void \texorpdfstring{$\ast$}{*}data)
\item
void(\texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*} \mbox{\hyperlink{struct_f_s_m_handler_aa733ab89a48f8a63b4afb623b4d6be90}{enter\+Action\+Table}} )(void \texorpdfstring{$\ast$}{*}data, FSM \texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*}c\+FSM)
\item
void(\texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*} \mbox{\hyperlink{struct_f_s_m_handler_ad3506a53c3ee76655a117f7db0da7d3d}{during\+Action\+Table}} )(void \texorpdfstring{$\ast$}{*}data, FSM \texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*}c\+FSM)
\item
void(\texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*} \mbox{\hyperlink{struct_f_s_m_handler_a04721875a9baabc8a51c54a668db9a2c}{exit\+Action\+Table}} )(void \texorpdfstring{$\ast$}{*}data, FSM \texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*}c\+FSM)
\item
void(\texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*} \mbox{\hyperlink{struct_f_s_m_handler_a976b4147d1c0c9aeb4a61c3cc85376bf}{child\+FSMStep\+Table}} )(FSM \texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*}c\+FSM)
\end{DoxyCompactItemize}
\doxysubsection{Detailed Description}
状态处理函数集合,全部需要子类重新填充内容
这个结构体是私有变量,子状态机和外界都不该访问。但是写在\+FSM\+\_\+protect.\+h文件这样方便在子类中添加函数。不然添加函数得再写个函数添加 有点麻烦
\doxysubsection{Field Documentation}
\Hypertarget{struct_f_s_m_handler_a934ff7d1a2f7714694b8a2927b5f8451}\label{struct_f_s_m_handler_a934ff7d1a2f7714694b8a2927b5f8451}
\index{FSMHandler@{FSMHandler}!selectNextState@{selectNextState}}
\index{selectNextState@{selectNextState}!FSMHandler@{FSMHandler}}
\doxysubsubsection{\texorpdfstring{selectNextState}{selectNextState}}
{\footnotesize\ttfamily int(\texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*} FSMHandler\+::select\+Next\+State) (void \texorpdfstring{$\ast$}{*}data, \mbox{\hyperlink{struct_f_s_m_signals}{FSMSignals}} \texorpdfstring{$\ast$}{*}signals)}
每个状态配置的状态选择函数 \Hypertarget{struct_f_s_m_handler_ac3b9fc077f8ba0368e8cba02a890aa2f}\label{struct_f_s_m_handler_ac3b9fc077f8ba0368e8cba02a890aa2f}
\index{FSMHandler@{FSMHandler}!transitionTable@{transitionTable}}
\index{transitionTable@{transitionTable}!FSMHandler@{FSMHandler}}
\doxysubsubsection{\texorpdfstring{transitionTable}{transitionTable}}
{\footnotesize\ttfamily void(\texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*} FSMHandler\+::transition\+Table) (void \texorpdfstring{$\ast$}{*}data)}
状态转移函数表 \Hypertarget{struct_f_s_m_handler_ab199071e132b4409d71883155e6b81f2}\label{struct_f_s_m_handler_ab199071e132b4409d71883155e6b81f2}
\index{FSMHandler@{FSMHandler}!transitionGeneralAction@{transitionGeneralAction}}
\index{transitionGeneralAction@{transitionGeneralAction}!FSMHandler@{FSMHandler}}
\doxysubsubsection{\texorpdfstring{transitionGeneralAction}{transitionGeneralAction}}
{\footnotesize\ttfamily void(\texorpdfstring{$\ast$}{*} FSMHandler\+::transition\+General\+Action) (void \texorpdfstring{$\ast$}{*}data)}
通用状态转移函数,不论有没有独立的状态转移函数都会执行 \Hypertarget{struct_f_s_m_handler_aa733ab89a48f8a63b4afb623b4d6be90}\label{struct_f_s_m_handler_aa733ab89a48f8a63b4afb623b4d6be90}
\index{FSMHandler@{FSMHandler}!enterActionTable@{enterActionTable}}
\index{enterActionTable@{enterActionTable}!FSMHandler@{FSMHandler}}
\doxysubsubsection{\texorpdfstring{enterActionTable}{enterActionTable}}
{\footnotesize\ttfamily void(\texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*} FSMHandler\+::enter\+Action\+Table) (void \texorpdfstring{$\ast$}{*}data, FSM \texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*}c\+FSM)}
进入状态时运行的函数和plecs对标 \Hypertarget{struct_f_s_m_handler_ad3506a53c3ee76655a117f7db0da7d3d}\label{struct_f_s_m_handler_ad3506a53c3ee76655a117f7db0da7d3d}
\index{FSMHandler@{FSMHandler}!duringActionTable@{duringActionTable}}
\index{duringActionTable@{duringActionTable}!FSMHandler@{FSMHandler}}
\doxysubsubsection{\texorpdfstring{duringActionTable}{duringActionTable}}
{\footnotesize\ttfamily void(\texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*} FSMHandler\+::during\+Action\+Table) (void \texorpdfstring{$\ast$}{*}data, FSM \texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*}c\+FSM)}
状态不变时运行的函数和plecs对标 \Hypertarget{struct_f_s_m_handler_a04721875a9baabc8a51c54a668db9a2c}\label{struct_f_s_m_handler_a04721875a9baabc8a51c54a668db9a2c}
\index{FSMHandler@{FSMHandler}!exitActionTable@{exitActionTable}}
\index{exitActionTable@{exitActionTable}!FSMHandler@{FSMHandler}}
\doxysubsubsection{\texorpdfstring{exitActionTable}{exitActionTable}}
{\footnotesize\ttfamily void(\texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*} FSMHandler\+::exit\+Action\+Table) (void \texorpdfstring{$\ast$}{*}data, FSM \texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*}c\+FSM)}
状态退出时运行的函数和plecs对标 \Hypertarget{struct_f_s_m_handler_a976b4147d1c0c9aeb4a61c3cc85376bf}\label{struct_f_s_m_handler_a976b4147d1c0c9aeb4a61c3cc85376bf}
\index{FSMHandler@{FSMHandler}!childFSMStepTable@{childFSMStepTable}}
\index{childFSMStepTable@{childFSMStepTable}!FSMHandler@{FSMHandler}}
\doxysubsubsection{\texorpdfstring{childFSMStepTable}{childFSMStepTable}}
{\footnotesize\ttfamily void(\texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*} FSMHandler\+::child\+FSMStep\+Table) (FSM \texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*}c\+FSM)}
\begin{DoxyRefDesc}{Deprecated}
\item[\mbox{\hyperlink{deprecated__deprecated000010}{Deprecated}}]子状态机暂时弃用 \end{DoxyRefDesc}