void
printSwitchDetails( vsSwitch *switchNode ){
if( switchNode == NULL )
return;
vsSwitch::const_iterator_mask swIter = switchNode->begin_mask();
vsSwitch::const_iterator_mask swEnd = switchNode->end_mask();
printf("Getting Masks for switch Node : %s ( %p ) \n\n", switchNode->getName(), switchNode );
for ( ; swIter != swEnd; ++ swIter ) {
printf(" Mask : %s : Number Active children = %d \n\n",
(*swIter).first.c_str(),
(*swIter).second.size() );
vuVector< int >::const_iterator maskIt = (*swIter).second.begin();
vuVector< int >::const_iterator maskEnd = (*swIter).second.end();
for ( ; maskIt != maskEnd; ++ maskIt ) {
printf( " Child Index : = %d \n", *maskIt );
}
}
}
|