P4C
The P4 Compiler
|
Common meter representation between PSA and other architectures. More...
#include <bfruntime.h>
Public Types | |
enum | Type { COLOR_UNAWARE = 0 , COLOR_AWARE = 1 } |
enum | Unit { UNSPECIFIED = 0 , BYTES = 1 , PACKETS = 2 } |
Static Public Member Functions | |
static std::optional< Meter > | from (const p4configv1::Meter &meterInstance) |
static std::optional< Meter > | fromDirect (const p4configv1::DirectMeter &meterInstance) |
Public Attributes | |
Util::JsonArray * | annotations |
P4Id | id |
std::string | name |
int64_t | size |
Unit | unit |
Common meter representation between PSA and other architectures.