P4C
The P4 Compiler
Loading...
Searching...
No Matches
Constraints::DigestConstraint Class Reference

#include <constraints.h>

Inheritance diagram for Constraints::DigestConstraint:
[legend]

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
 

Detailed Description

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.

Member Function Documentation

◆ addConstraint()

void Constraints::DigestConstraint::addConstraint ( uint32_t r)
inlinevirtual

◆ hasConstraint()

bool Constraints::DigestConstraint::hasConstraint ( ) const
inlinevirtual