![]() |
P4C
The P4 Compiler
|
#include <constraints.h>
Public Types | |
| enum | DigestType { NONE = 0 , MIRROR = (1 << 0) , LEARNING = (1 << 1) , RESUBMIT = (1 << 2) , PKTGEN = (1 << 3) } |
Public Member Functions | |
| void | addConstraint (uint32_t r) |
| bool | hasConstraint () const |
| bool | isLearning () const |
| bool | isMirror () const |
| bool | isPktGen () const |
| bool | isResubmit () const |
This class represents the digest constraint, which implies that the field is used in a digest. Additionally, it also stores the type of digest in which the field is used.
|
inlinevirtual |
Implements Constraints::BooleanConstraint.
|
inlinevirtual |
Implements Constraints::BooleanConstraint.