bmv2
Designing your own switch target with bmv2
Public Member Functions | Static Public Member Functions | List of all members
bm::ErrorCode Class Reference

Public Member Functions

bool operator== (const ErrorCode &other) const
 Equality operator. More...
 
bool operator!= (const ErrorCode &other) const
 Inequality operator. More...
 

Static Public Member Functions

static ErrorCode make_invalid ()
 

Detailed Description

Used to represent an error code (used in the parser) internally. This is really just a wrapper around an integral type.

Member Function Documentation

◆ make_invalid()

static ErrorCode bm::ErrorCode::make_invalid ( )
inlinestatic

An invalid ErrorCode, with an integral value distinct from all other P4-specified error codes.

◆ operator!=()

bool bm::ErrorCode::operator!= ( const ErrorCode other) const
inline

Inequality operator.

◆ operator==()

bool bm::ErrorCode::operator== ( const ErrorCode other) const
inline

Equality operator.


The documentation for this class was generated from the following file: