P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::ControlPlaneAPI::P4SymbolSuffixSet Struct Reference

#include <p4RuntimeSymbolTable.h>

Public Member Functions

void addSymbol (const cstring &symbol)
 Adds @symbol's suffixes to the set if it's not already present.
 
cstring shortestUniqueSuffix (const cstring &symbol) const
 

Detailed Description

Stores a set of P4 symbol suffixes. Symbols consist of path components separated by '.'; the suffixes this set stores consist of these components rather than individual characters. The information in this set can be used determine the shortest unique suffix for a P4 symbol.