本文整理汇总了C++中statelist::Iter::isFinState方法的典型用法代码示例。如果您正苦于以下问题:C++ Iter::isFinState方法的具体用法?C++ Iter::isFinState怎么用?C++ Iter::isFinState使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类statelist::Iter
的用法示例。
在下文中一共展示了Iter::isFinState方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: notFinalFromStateAction
void FsmAp::notFinalFromStateAction( int ordering, Action *action )
{
for ( StateList::Iter state = stateList; state.lte(); state++ ) {
if ( ! state->isFinState() )
state->fromStateActionTable.setAction( ordering, action );
}
}
示例2: notFinalErrorAction
void FsmAp::notFinalErrorAction( int ordering, Action *action, int transferPoint )
{
for ( StateList::Iter state = stateList; state.lte(); state++ ) {
if ( ! state->isFinState() )
state->errActionTable.setAction( ordering, action, transferPoint );
}
}
示例3: middleFromStateAction
void FsmAp::middleFromStateAction( int ordering, Action *action )
{
/* Set the action in all states that are not the start state and not final. */
for ( StateList::Iter state = stateList; state.lte(); state++ ) {
if ( state != startState && ! state->isFinState() )
state->fromStateActionTable.setAction( ordering, action );
}
}
示例4: middleErrorAction
/* Set error actions in the states that have transitions into a final state. */
void FsmAp::middleErrorAction( int ordering, Action *action, int transferPoint )
{
/* Isolate the start state in case it is reachable from in inside the
* machine, in which case we don't want it set. */
for ( StateList::Iter state = stateList; state.lte(); state++ ) {
if ( state != startState && ! state->isFinState() )
state->errActionTable.setAction( ordering, action, transferPoint );
}
}
示例5: makeStateList
void BackendGen::makeStateList()
{
/* Write the list of states. */
long length = fsm->stateList.length();
cgd->initStateList( length );
curState = 0;
for ( StateList::Iter st = fsm->stateList; st.lte(); st++ ) {
makeStateActions( st );
makeEofTrans( st );
makeStateConditions( st );
makeTransList( st );
long id = st->alg.stateNum;
cgd->setId( curState, id );
if ( st->isFinState() )
cgd->setFinal( curState );
curState += 1;
}
}
示例6: writeStateList
void XMLCodeGen::writeStateList()
{
/* Write the list of states. */
out << " <state_list length=\"" << fsm->stateList.length() << "\">\n";
for ( StateList::Iter st = fsm->stateList; st.lte(); st++ ) {
out << " <state id=\"" << st->alg.stateNum << "\"";
if ( st->isFinState() )
out << " final=\"t\"";
out << ">\n";
writeStateActions( st );
writeEofTrans( st );
writeStateConditions( st );
writeTransList( st );
out << " </state>\n";
if ( !st.last() )
out << "\n";
}
out << " </state_list>\n";
}