ExistsActiveSimpleKey . Returns true if there's a potential simple key at our flow level (there's allowed at most one per flow level, i.e., at the start of the flow start token)
| 45 | // (there's allowed at most one per flow level, i.e., at the start of the flow |
| 46 | // start token) |
| 47 | bool Scanner::ExistsActiveSimpleKey() const { |
| 48 | if (m_simpleKeys.empty()) |
| 49 | return false; |
| 50 | |
| 51 | const SimpleKey& key = m_simpleKeys.top(); |
| 52 | return key.flowLevel == GetFlowLevel(); |
| 53 | } |
| 54 | |
| 55 | // InsertPotentialSimpleKey |
| 56 | // . If we can, add a potential simple key to the queue, |