本文整理汇总了C++中redtranslist::Iter::next方法的典型用法代码示例。如果您正苦于以下问题:C++ Iter::next方法的具体用法?C++ Iter::next怎么用?C++ Iter::next使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类redtranslist::Iter
的用法示例。
在下文中一共展示了Iter::next方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: writeTransList
void GraphvizDotGen::writeTransList( RedStateAp *state )
{
/* Build the set of unique transitions out of this state. */
RedTransSet stTransSet;
for ( RedTransList::Iter tel = state->outRange; tel.lte(); tel++ ) {
/* If we haven't seen the transitions before, the move forward
* emitting all the transitions on the same character. */
if ( stTransSet.insert( tel->value ) ) {
/* Write out the from and to states. */
out << "\t" << state->id << " -> ";
if ( tel->value->targ == 0 )
out << "err_" << state->id;
else
out << tel->value->targ->id;
/* Begin the label. */
out << " [ label = \"";
ONCHAR( tel->lowKey, tel->highKey );
/* Walk the transition list, finding the same. */
for ( RedTransList::Iter mtel = tel.next(); mtel.lte(); mtel++ ) {
if ( mtel->value == tel->value ) {
out << ", ";
ONCHAR( mtel->lowKey, mtel->highKey );
}
}
/* Write the action and close the transition. */
TRANS_ACTION( state, tel->value );
out << "\" ];\n";
}
}
/* Write the default transition. */
if ( state->defTrans != 0 ) {
/* Write out the from and to states. */
out << "\t" << state->id << " -> ";
if ( state->defTrans->targ == 0 )
out << "err_" << state->id;
else
out << state->defTrans->targ->id;
/* Begin the label. */
out << " [ label = \"DEF";
/* Write the action and close the transition. */
TRANS_ACTION( state, state->defTrans );
out << "\" ];\n";
}
}