CBlueUI
C++ 跨平台跨框架的数据可视化工具
|
状态转移表 更多...
Public 成员函数 | |
StateRow () | |
StateRow (const StateRow &other) | |
~StateRow () | |
StateRow & | operator= (const StateRow &other) |
void | Clear () |
void | SetAccept (BOOL is_accept_state, int32_t accept_id_=-1) |
void | SetSplitSymbol (BOOL is_split_symbol_) |
将节点标记为拆分字符。例如{>,>=}这样 | |
void | AddNextStateMap (uint32_t input, int32_t state_next) |
添加映射关系:y=f(x)。x=input,y = state_next。 | |
void | AddNextStateMapWithChar (const TCHAR *str, int32_t state_next) |
添加状态映射关系 | |
void | AddepsilonState (int32_t state_next) |
添加非确定自动机(NFA)ε 状态 | |
int32_t | NextState (uint32_t input) const |
根据输入值,获取下一个状态 | |
Public 属性 | |
WCHAR | ch [4] |
int32_t | accept_id |
BOOL | is_accept_state |
BOOL | is_split_symbol |
std::vector< int32_t > | state_epsilon |
std::map< uint32_t, int32_t > | state_map |
状态转移表
BUI::StateRow::StateRow | ( | ) |
BUI::StateRow::StateRow | ( | const StateRow & | other | ) |
BUI::StateRow::~StateRow | ( | ) |
void BUI::StateRow::AddepsilonState | ( | int32_t | state_next | ) |
添加非确定自动机(NFA)ε 状态
state_next |
void BUI::StateRow::AddNextStateMap | ( | uint32_t | input, |
int32_t | state_next | ||
) |
添加映射关系:y=f(x)。x=input,y = state_next。
input | 当为0时表示。任意字符跳转的状态 |
state_next |
void BUI::StateRow::AddNextStateMapWithChar | ( | const TCHAR * | str, |
int32_t | state_next | ||
) |
添加状态映射关系
str | |
state_next |
void BUI::StateRow::Clear | ( | ) |
int32_t BUI::StateRow::NextState | ( | uint32_t | input | ) | const |
根据输入值,获取下一个状态
input |
void BUI::StateRow::SetAccept | ( | BOOL | is_accept_state, |
int32_t | accept_id_ = -1 |
||
) |
void BUI::StateRow::SetSplitSymbol | ( | BOOL | is_split_symbol_ | ) |
将节点标记为拆分字符。例如{>,>=}这样
int32_t BUI::StateRow::accept_id |
WCHAR BUI::StateRow::ch[4] |
BOOL BUI::StateRow::is_accept_state |
BOOL BUI::StateRow::is_split_symbol |
std::vector<int32_t> BUI::StateRow::state_epsilon |
std::map<uint32_t, int32_t> BUI::StateRow::state_map |