P4C
The P4 Compiler
|
#include <p4RuntimeArchHandler.h>
Public Member Functions | |
operator p4rt_id_t () const | |
bool | operator!= (const P4RuntimeSymbolType &other) const |
bool | operator< (const P4RuntimeSymbolType &other) const |
bool | operator== (const P4RuntimeSymbolType &other) const |
Static Public Member Functions | |
static P4RuntimeSymbolType | P4RT_ACTION () |
static P4RuntimeSymbolType | P4RT_CONTROLLER_HEADER () |
static P4RuntimeSymbolType | P4RT_OTHER_EXTERNS_START () |
static P4RuntimeSymbolType | P4RT_TABLE () |
static P4RuntimeSymbolType | P4RT_VALUE_SET () |
Static Protected Member Functions | |
static P4RuntimeSymbolType | make (p4rt_id_t id) |
Base class for the different types introduced by the P4 architecture. The class includes static factory methods for all the built-in P4 types common to all architectures. When defining the P4Info serialization logic for a new architecture, the first step is to inherit from this class and add factory methods for architecture-specific types. The class is used to separate all symbols by type in the symbol table which is responsible for control-plane id assignment.
|
inlineexplicit |
An explicit conversion operator that is useful when building the P4Info message. It returns the id prefix for that type, as defined in the p4info.proto file.